in reply to Re: regular expression help
in thread regular expression help
...consider splitting...Or define your X subpattern as a separate regex, then build the pattern with it:
However, the capturing parentheses are not going to capture everything this way.my $subpat = qr/(?:<\*\d+>)?([^<]+)<(\d+):(\d+)>/; $str =~/$subpat(?:,$subpat)*/;
Caution: Contents may have been coded under pressure.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: regular expression help
by ikegami (Patriarch) on Jun 03, 2009 at 20:30 UTC | |
Re^3: regular expression help
by pip9ball (Acolyte) on Jun 03, 2009 at 22:36 UTC |
In Section
Seekers of Perl Wisdom