|
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">
|