in reply to regular expression help
my $test_str = 'C:\VENDOR\MICROSOFT\PLATFORMSDK\INCLUDE' ; my ( $first, $second ) = $test_str =~ m/^([^\\]+\\[^\\]+)(\\.*)$/ ; print "first: $first\nsecond: $second\n" ; # first: C:\VENDOR # second: \MICROSOFT\PLATFORMSDK\INCLUDE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression help
by Abigail-II (Bishop) on Jun 11, 2002 at 13:19 UTC |