in reply to
Re^2: Regex help
in thread Regex help
What is the reason to put \E at the end of a regexp?
$ perl -Mre=debug -e 'my $x= "*"; /\Q$x.+/'
Compiling REx "\*\.\+"
1: EXACT <*.+> (3)
3: END (0)
anchored "*.+" at 0 (checking anchored isall) minlen 3
Freeing REx: "\*\.\+"
Use /\Q$variable/ except if that's not the entire regexp pattern. You probably have to use /\Q$variable\E/ then.
0 - I'm a blankster
0 - My devices have no keyboard
0 - I use a chorded keyboard that transcends your concept of keys
26 - I need the other keys for Perl sigils!
31 - I write code in the original APL
31 - ß counts only as one letter!
∞ - I use an Optimus keyboard
ℵ1 - I reject your Latin-centric notion of letters
Results (27 votes),