I've been tryign to get some good info on pattern matching using the function preg_replace(), but hardly got any good ones. What i was trying to do should be quite simple; however, i am still new to patterns.
I tried to replace this pattern:
:string: with img file, just like the smilies icons on phpbb
string could be any character 0-9, a-z, A-Z, -, _
and the string is between colons,
in the front of both colons ( : ) should be a white space.
Thanks