loris has asked for the wisdom of the Perl Monks concerning the following question:
Hello RegexpSplitters,
Is there a quick way to split a word with internal capitals at those capitals and to retain them? Doing
my @w = split(/[A-Z]/,$s);
obviously turns
anUnwieldyVariableNameinto an array with
an nwieldy ariable amewhich is not what I want.
Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Split: Having your capitals and not eating them
by edan (Curate) on Nov 11, 2004 at 12:49 UTC | |
|
Re: Split: Having your capitals and not eating them
by grinder (Bishop) on Nov 11, 2004 at 13:24 UTC | |
by tachyon (Chancellor) on Nov 11, 2004 at 13:47 UTC | |
by edan (Curate) on Nov 11, 2004 at 14:39 UTC | |
by tachyon (Chancellor) on Nov 11, 2004 at 14:49 UTC | |
by loris (Hermit) on Nov 12, 2004 at 08:08 UTC |