in reply to Re^2: Regex helpin thread Regex help
$ 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.
call it version 1.0
destroy all evidence that I tried
pay someone else to do it for me
have some cake
try two more times so my failure is statistically significant
Results (113 votes). Check out past polls.