in reply to Split without removing characters
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
|
|---|