To "split the string at the character that precedes \d\)", use a zero-width lookahead for the digit and paren:
split /.(?=\d\))/, $1
In reply to Re: splitting a string on a reqexp
by hbm
in thread splitting a string on a reqexp
by medalto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |