You don't need to do that, because the delimiter is included in the result if the pattern has parenthese.
--print join ":", split "-", "1-2-3-4"; # as opposed to: print join ":", split "(-)", "1-2-3-4";
In reply to Re^2: a regex to split this...
by Leviathan
in thread a regex to split this...
by s_m_b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |