Try using the zero-width look-behind and look-ahead matches:
@stuff = split /(?<=[a-z])(?=[A-Z])/;This means that the regex matches at a point where there is a lowercase letter immediately preceding, and an uppercase letter immediately following, but neither of these letters are consumed by the match. More info: perlre
-Colin.
WHITEPAGES.COM | INC
In reply to Re: Split without removing characters
by cmeyer
in thread Split without removing characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |