ramya2005 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; no warnings qw(once); { my $ProdBuild = 'K7000AKNBJQ4333'; if ($ProdBuild =~ m/K7000[A-Z]\-?[A-Z][A-Z][A-Z][A-Z][A-Z]\-?[4-9] +[3-9]\d+/i) { print "Product match $ProdBuild \n" } else { print "No match found \n" } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression patter matching question
by ikegami (Patriarch) on Jan 19, 2006 at 19:13 UTC | |
|
Re: Regular expression pattern matching question
by thundergnat (Deacon) on Jan 19, 2006 at 19:35 UTC | |
|
Re: Regular expression patter matching question
by diotalevi (Canon) on Jan 19, 2006 at 19:16 UTC | |
by ikegami (Patriarch) on Jan 19, 2006 at 20:03 UTC | |
by diotalevi (Canon) on Jan 19, 2006 at 20:07 UTC | |
by grinder (Bishop) on Jan 19, 2006 at 21:14 UTC | |
by diotalevi (Canon) on Jan 19, 2006 at 21:34 UTC |