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.
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (353 votes). Check out past polls.