in reply to Re^2: dumb regex question
in thread dumb regex question
Or whatever's appropriate instead of \S.if (m{"(/[^"]+)"|(/\S+)}) { my $match = defined $1 ? $1 : $2; ... }
Update: Fixed slashes
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: dumb regex question
by Nkuvu (Priest) on Apr 07, 2009 at 01:25 UTC |
In Section
Seekers of Perl Wisdom