Simply change /.../xmsg to /.../xsg.
and/or
Simply change $ to \z.
Update: Added the second (and better) option.
In reply to Re^3: Parsing using m//g
by ikegami
in thread Parsing using m//g
by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |