hi, i have a problem with reg. expressions i need to convert this PCRE code into PHP regular expressions preg_replace("/<img src=\"(\S+?)\">/is","<img src=\"$path_to_images\1\">",$text);
i really cant get those posix style regexps to work, so any help is appreciated
Hi! Try with something like this:
$new_img = eregi("<img src=\"([a-zA-Z0-9]+)">","<img src=\"$path_to_images\1">",$text);
I think it should work, I've not time to test it. See you
inK