> Ah, good one. Though unfortunately, and I hate to admit that, both our
> rules will never match. The # hash needs to be escaped... *sigh*
> 
>   [/:?\#]
> 
> Or just ignore it by leaving it out. It's pretty rare, anyway.

Hash (#), like At (@) and sometimes Dollar ($), has an inconsistent
behavior of the SA parser.  When in doubt, escape it, but I believe it
is correctly parsed when delimited with m''

The issue with $ is moot in m//, but m'foo$' and several other
punctuation-based delimiters trigger various obscure perl variables,
which I believe include  $'  $&  $`  $+   ... A workaround is to use \Z
(which is usually the same thing) or (?:$) or a different delimiter.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to