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.
Non-existent; I don't have TV
Non-existent; my TV doesn't have/need a remote
Under my control; I watch alone
Under the control of whoever shouts loudest
Under the control of whoever gets it first
One of many, and the TV has a mind of its own
Results (581 votes),