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.
For :) – (:\)(?!\)))
Then
For :)) – (:\)\))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With