Once you have the position with rindex (which is a great idea), why not apply substr instead of a sophisticated regex in split?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: split string at variable position with matching
by LanX
in thread split string at variable position with matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |