in reply to Re: need help using split()
in thread need help using split()

Ahh, right... the second letter is always lowercase, and that can't match uppercase:
my @split = $data =~ /\G([A-Z][a-z]?|\d)/g;
Much simpler.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: need help using split()
by deryni (Beadle) on Mar 22, 2001 at 06:57 UTC
    thanks merlyn it worked.

    anyway I was originally hoping not to constrain the user to one input format.
    I tried modifying your code in a couple different ways but none of them worked.
    Any further help would be appreciated.

    Thanks again.
         -Etan