Hi everybody! Lets say I'm trying to replace every "A" character with a "B", inside two [lol] tags.
For example:
"[lol]It's greatA really isA[/lol]"
will become
"[lol]It's greatB really isB[/lol]"
I was trying to work something myself but it was in vain. The closest i got is this:
preg_replace("%(\[lol\])"."(.*?)([A]+?)(.*?)"."(\[/lol\])%s", "$1$2B$4$5", $haystack);
of course it doesn't work this way...
I'll appreciate any assistance!
thanks!