in reply to split by a capital followed by
This may be buggy since I'm not a genius with lookaround assertions but here it goes:
my $c='JohnSmithSplitMe'; my @c=split /(?<=[a-z])(?=[A-Z])/, $c; print "-@c-\n"; __END__ -John Smith Split Me-
--
David Serrano
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split by a capital followed by
by Anonymous Monk on Dec 19, 2005 at 17:45 UTC |