...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)*/;
In reply to Re^2: regular expression help
by Roy Johnson
in thread regular expression help
by pip9ball
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |