in reply to Re: pattern match of first occurance
in thread pattern match of first occurance
Or match only digits:
say $1 if $var =~m{<year>(\d+)</year>};
rdfield
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: pattern match of first occurance
by deMize (Monk) on Jul 08, 2010 at 20:47 UTC | |
by rdfield (Priest) on Jul 15, 2010 at 15:06 UTC |
In Section
Seekers of Perl Wisdom