Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: How to improve regex for parsing equals delimited data

by sauoq (Abbot)
on May 11, 2012 at 03:48 UTC ( #969896=note: print w/ replies, xml ) Need Help??


in reply to Re: How to improve regex for parsing equals delimited data
in thread How to improve regex for parsing equals delimited data

Same idea in one operation, a little more robust, and using his original [A-Za-z]+ for fields...

my ($toss, @list) = split /\s*[A-Za-z]+\s*\=\s*/;

-sauoq
"My two cents aren't worth a dime.";


Comment on Re^2: How to improve regex for parsing equals delimited data
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-07-22 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (130 votes), past polls