The regex is a little hairy; it has a negative look-ahead assertion inside the positive look-ahead assertion.$_ = "#@##@###@####@#####@"; $_ = reverse; my @pieces = reverse (split /\@(?=(?:##)*(?!#))/); + for (@pieces) { $_ = reverse; } print "@pieces\n";
In reply to Re: Splitting on escapable delimiter
by Anonymous Monk
in thread Splitting on escapable delimiter
by Daryn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |