roteme has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Looking for Perl code using regular expressions to validate windows path.
For example:
my $dir = "c:\"; if ($dir =~ /REGULAR EXPRESSIONS/) { print ("Valid path: $dir"); } else { print ("Invalid path: $dir"); }
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to validate windows path
by nemesdani (Friar) on Mar 13, 2012 at 10:17 UTC | |
by Anonymous Monk on Mar 13, 2012 at 10:23 UTC | |
by roteme (Acolyte) on Mar 13, 2012 at 11:48 UTC | |
by MidLifeXis (Monsignor) on Mar 13, 2012 at 12:19 UTC | |
by nemesdani (Friar) on Mar 13, 2012 at 12:27 UTC | |
by roteme (Acolyte) on Mar 13, 2012 at 16:59 UTC | |
by tobyink (Canon) on Mar 13, 2012 at 21:28 UTC | |
by MidLifeXis (Monsignor) on Mar 13, 2012 at 18:40 UTC |