Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Complex Splitting

by Roy Johnson (Monsignor)
on Feb 07, 2007 at 01:46 UTC ( [id://598665]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Complex Splitting
in thread Complex Splitting

Hasty reading on my part. Not capturing the brackets is as simple as leaving them outside the capturing parentheses:
@array = grep defined, split /\[(.*?)\]|/;

Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2025-07-17 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.