To escape '#', just use '\#', that should do.
Two further remarks:
Hope this helps, -gjb-
In reply to Re: Regexp and HTML revisited...
by gjb
in thread Regexps to change HTML tags/attributes
by Tricky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |