josh803316 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; my $tests = '% only 1 profile is allowed '; my $regex = '^$'; if($tests =~ qr{$regex}ms) { print "$tests\n REGEX MATCHED\n"; } else { print "$tests\n FAILED!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiline match for empty string
by kennethk (Abbot) on Aug 05, 2010 at 17:01 UTC | |
by josh803316 (Beadle) on Aug 05, 2010 at 17:19 UTC | |
by kennethk (Abbot) on Aug 05, 2010 at 18:13 UTC | |
by josh803316 (Beadle) on Aug 05, 2010 at 18:25 UTC | |
|
Re: Multiline match for empty string
by Anonymous Monk on Aug 05, 2010 at 16:57 UTC | |
|
Re: Multiline match for empty string
by ikegami (Patriarch) on Aug 05, 2010 at 20:39 UTC | |
by kennethk (Abbot) on Aug 05, 2010 at 22:47 UTC | |
by ikegami (Patriarch) on Aug 05, 2010 at 23:00 UTC |