QuasarD has asked for the wisdom of the Perl Monks concerning the following question:
The scalar string1 doesn't match...but why??use strict; use warnings; my $string1 = '"18/02/2018"'; print $string1 . "\n" if ($string1 =~ m/^"{1}[^"{1}]/); my $string2 = '"28/02/2018"'; print $string2 . "\n" if ($string2 =~ m/^"{1}[^"{1}]/); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp issue
by Eily (Monsignor) on Feb 21, 2018 at 11:07 UTC | |
|
Re: Regexp issue
by hippo (Archbishop) on Feb 21, 2018 at 14:47 UTC | |
by QuasarD (Novice) on Feb 22, 2018 at 15:52 UTC | |
by hippo (Archbishop) on Feb 22, 2018 at 16:10 UTC | |
|
Re: Regexp issue
by Anonymous Monk on Feb 21, 2018 at 12:04 UTC | |
by QuasarD (Novice) on Feb 21, 2018 at 12:53 UTC | |
by AnomalousMonk (Archbishop) on Feb 21, 2018 at 13:37 UTC | |
by QuasarD (Novice) on Feb 21, 2018 at 14:35 UTC | |
by 1nickt (Canon) on Feb 21, 2018 at 13:30 UTC |