Subject: | Y::R::E can't handle \Q ... \E |
As an example:
#!/usr/bin/perl
use strict;
use warnings;
use YAPE::Regex::Explain;
my $re = '\Q[\E';
print YAPE::Regex::Explain->new($re)->explain;
prints:
The regular expression:
matches as follows:
NODE EXPLANATION
----------------------------------------------------------------------
(?-imsx: group, but do not capture (case-sensitive)
(with ^ and $ matching normally) (with . not
matching \n) (matching whitespace and #
normally):
----------------------------------------------------------------------
\Q 'Q'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------