Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: regex splitting

by colwellj (Monk)
on Nov 19, 2009 at 22:34 UTC ( [id://808275]=note: print w/replies, xml ) Need Help??


in reply to regex splitting

Its doing what you are asking it to. Which is split by space and left bracket. Split will keep doing that as many times as it can to make your array.
You could look at adding a;
join('\s\(',(@pos[1]..@pos[$#pos]))
This is pretty ugly though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found