What I want
Hi! I want to replace :)
to smile.png
and :))
to laugh.png
.
The problem
The script finds :)
inside :))
so laugh.png
is not shown, only smile.png
+)
This is what I have tried so far for :))
:
preg_replace("/:)+(?!))/i",$image, $string))
Some other regexes what I tried:
"/\:\)+(?=\))/i"
"/\:+(?=\)\))/i"
But nothing want's to work what I tried yet.