I would look at the docs on quotemeta. It can potentially (and likely will) return two characters for every one input. For example, " will return \". Your mapping functions do not appear to take that possibility into account.
In reply to Re: problematice metashar regexp
by Belgarion
in thread problematice metashar regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |