View Single Post
Old 05-15-2009, 10:37 AM   #1
MelBridgeman
Lifetime Suspension
 
Join Date: Mar 2007
Location: Calgary
Exp:
Default Regular Expression Experts?

Hey anyone in tune with regular expressions?

I am trying to replace the content attribute of HTML meta tags..

The issue is is that meta tags isnt closed by </meta> and the xpression i have created is actually working, but replacing the entire contents past the meta tag

I am using PHP and the eregi_replace function, for the title tags I am using
<title[^>]*>.*</title[^>]*> to replace the contents of the tags and it works great....Anyone have a idea how to parse out tags that don't have a terminate tag?

I am not a regular expression guru, just trying to go off examples on the net.
MelBridgeman is offline   Reply With Quote