Yes, it is possible. You are looking for qr in perlop (under Regexp Quote-Like Characters).
#!/usr/bin/perl use strict; use warnings; my $text = 'Mary had a little lamb.'; # get your text from wherever my $regex = 'it'; # get your regex info from where +ver my $reg = qr/$regex/; # compile it print $regex if $text =~ $reg; # check for a match
In reply to Re: Configurable Matches
by Mr. Muskrat
in thread Configurable Matches
by jdhawke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |