I want to replace the occurences of a pseudo tag like <L>bla-bla</L> with the HTML it has been parsed into. But I want it to be done one at the time.
I don't really care about what I need to replace, but how I can limit ereg_replace to do it the number of times I want - one time in this instance.
Doing something like ereg_replace("<L>", $my_code, $in_this) might do, but will clear the lot and replace it with the same code snippet. I need to be able to discriminate between every single one as the code depends on the content between the pseudo tags.
Martin