Here is how I would write this substitution:
$my{'msg'}=~ s{\Q$name\E}{<img src="interface/$image">}g
Explanations:
Also note that "Help"is not a very... helpful title for a question. Posts are archived and can be searched, so using a descriptive like "problem with / in regexp" or something similar would make it easier for future users to retrieve and use your post. It would also make it more likely that people would take the time to answer your question.
In reply to Re: Help
by mirod
in thread Error: unmatched ) before HERE mark in regex... (was: Help)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |