Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Splitting on non-initial uppercase without split

by dimar (Curate)
on Jan 26, 2005 at 20:15 UTC ( [id://425362]=note: print w/replies, xml ) Need Help??


in reply to Splitting on non-initial uppercase without split

Since no one else has mentioned it yet, here is an example that uses the SlashG anchor. (SlashG is typed like that just to make it search-engine-distinguishable).

$_ = "ThisIsACamelCaseWorld"; my @aTemp; @aTemp = m/\G[A-Z]?[a-z]*/g; ## same thing print join " ", @aTemp; __END__ This Is A Camel Case World

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://425362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found