There are hacks, though:
$_ = "abc*def*ghi"; my @matches; m/(?: ([^*]+) (?{ push @matches, $^N}) \*?)+/x; print join('|', @matches), $/;
But before you use this, read the big fat warning in perlre about how experimental (?{ ... }) is.
In reply to Re^3: regex question
by moritz
in thread regex question
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |