The rub is that I am trying to allow the user to specify the delimiters on the command line.
You want to read about \Q and \E in perldoc perlre, or about quotemeta.
In reply to Re: escaping variables in regexp
by blazar
in thread escaping variables in regexp
by Getch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |