Page 1 of 1

pattern not finding a match...

Posted: Fri Sep 29, 2006 11:54 am
by Burrito

Code: Select all

$str = preg_replace('/.*?<img src="images\/spy-head_11.jpg"/ism',$headstring,$str);
basically I need to replace everything before and including the start of this image tag with my $headstring var. For some reason it's not matching.

any ideas?

Posted: Fri Sep 29, 2006 11:57 am
by Burrito
ahh! nm, fckeditor decided it was important to change the order of the tag attributes of my image tag...