Hi
maybe you can help me. I'm not so used to regulare expressions. I have following code:
$Help = "<img class=\"smilie\" src=\"http://www.mydomain.de/smilies/$1.gif\">";
$input = preg_replace('!:([A-Za-z0-9_]+?):!', $Help, $input);
which changes a :test: to
<img class=\"smilie\" src=\"http://www.mydomain.de/smilies/test.gif\">";
Now I want to change this expression, it shall make sure that after the secone doppelpoint there is no characters or numbers
e.g.:
that's what I tried but it doesn't work
$input = preg_replace('!:([A-Za-z0-9_]+?):([^A-Za-z0-9])!', $Help, $input);
what do I do wrong?