I am reading a regular expression from a configuration file, which may or may not have invalid syntax. (It’s blocked behind a firewall, so don’t enter the security system.) I was able to check many errors and give a friendly message.
There is no such luck on this:
Unrecognized escape \Q passed through in regex
I know what causes it, I just want to know if I can capture it in Perl 5.8. So far, he has resisted my efforts to test this condition.
So the question is: does anyone know how to fix this? Do I need to redirect STDERR?
source
share