Hi,
Is it possible to use str_replace to only replace the first occurance of a match? If not what is the syntax for preg_replace?
str_replace() replaces every instance of needle in haystack...
for preg_replace() look in the manual describing regular expressions...