Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • php update question (In: Coding & Databases - PHP, ASP, Perl, etc.)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    There are 0 guests and 1 members in the forums right now.
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    austerian
    Joined: Jul 29, 2007
    # Posts: 8

    View the profile for austerian Send austerian a private message

    Posted: 2007-Jul-30 22:28
    Edit Message Delete Message Reply to this message

    Hello,

    Does anyone out there in the ether know of a regular expression that will extract text from an HTML file?

    If so can you post it?



    Prowler
    Staff
    Joined: Aug 14, 2000
    # Posts: 1832

    View the profile for Prowler Send Prowler a private message

    Posted: 2007-Jul-31 06:15
    Edit Message Delete Message Reply to this message

    A regular expression is designed to look for the occurrences of a pre determined set. To write such an expression, you must know what you mean by "text" and how it is formatted inside the HTML file.



    david68
    Joined: May 16, 2005
    # Posts: 144

    View the profile for david68 Send david68 a private message

    Posted: 2007-Jul-31 14:22
    Edit Message Delete Message Reply to this message

    Do you mean strip out HTML tags? If so, strip_tags would do it. See php.net/strings or us2.php.net/manual/en/function.strip-tags.php for more info.




    austerian
    Joined: Jul 29, 2007
    # Posts: 8

    View the profile for austerian Send austerian a private message

    Posted: 2007-Jul-31 20:06
    Edit Message Delete Message Reply to this message

    Thanks


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions