Forum Moderators: coopster

Message Too Old, No Replies

Data within HTML Tags

Using Reg Expresions

         

StanTheMan

2:09 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



Hi All

Does anyone how to strip data out of html tags using regular expressions?

Thanks

ergophobe

8:10 pm on Apr 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, someone does ;-)

To answer, though, it would help if you were more specific. Do you want to pull certain attributes from tags themselves, or do you want the data that is enclosed within certain tags? Or do you just want to strip out the HTML tags (for which PHP provides the strip_tags [php.net] function)?