Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I tried this and it didnt work:$data =~ /(?:match|matching\.com|match\.company)/gi)
my $first = 'match'; my $second = 'matching\.com'; my $third = 'match\.company'; $data =~ /(?:$first|$second|$third)/gi)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Variable in pattern matching line
by broquaint (Abbot) on Jul 01, 2003 at 13:04 UTC | |
|
Re: Variable in pattern matching line
by Tomte (Priest) on Jul 01, 2003 at 13:05 UTC | |
by Anonymous Monk on Jul 01, 2003 at 13:17 UTC | |
|
Re: Variable in pattern matching line
by mhearse (Chaplain) on Jul 01, 2003 at 16:45 UTC | |
|
Re: Variable in pattern matching line
by dreadpiratepeter (Priest) on Jul 01, 2003 at 13:45 UTC | |
by hardburn (Abbot) on Jul 01, 2003 at 14:00 UTC | |
by dreadpiratepeter (Priest) on Jul 01, 2003 at 14:17 UTC |