Posted by saiena on 08/29/05 23:55
Is there a way in my regular expression syntax to cause alternating occurences of the search string to be replaced? Here's my code: $item[content] = eregi_replace($search_string, $replace_string, $item[content]); This successfully replaces all occurences of $search_string. Any way to reaplce every other?
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming