View Single Post
Old 04-26-2008, 01:56 PM  
DigitalPimp
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Los Angeles, CA
Posts: 512
Need regular expression help

I got the following to match an image tag with a path beginning with a / and replace it with a variable called domain that ends with a /

$a = eregi_replace(" src=\"/"," src=\"$domain/",$a);

I want to know how I can write one or more new lines to match a similar image tag path that does not begin with a / and does not begin with a http for example

<img src="images/someimage.gif">
DigitalPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote