That doesn't really make any sense. Does
\dir\d\file.txt
mean
\\dir\\d\\file\.txt
or
\dir\d\\file.txt
or something else?
There's no way to tell what the user meant. There's a reason why regexp provide an escape character: It is required.
In reply to Re: Escaping quotemeta() in regex
by ikegami
in thread Escaping quotemeta() in regex
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |