Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $line="asdf asdf asdf INC1234567 klasdv asf asdf "; if ($line =~ /INC[0-9]\{7\}/ ) { print "yes\n"; }else{ print "no\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quick Regex Question
by toolic (Bishop) on Oct 08, 2012 at 15:00 UTC | |
|
Re: Quick Regex Question
by Athanasius (Archbishop) on Oct 08, 2012 at 14:24 UTC | |
by Anonymous Monk on Oct 08, 2012 at 14:31 UTC | |
by Athanasius (Archbishop) on Oct 08, 2012 at 14:37 UTC | |
by GrandFather (Saint) on Oct 08, 2012 at 23:29 UTC | |
by AnomalousMonk (Archbishop) on Oct 09, 2012 at 12:36 UTC |