Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Regexp help

by frozenwithjoy (Priest)
on Nov 22, 2012 at 01:02 UTC ( [id://1005034]=note: print w/replies, xml ) Need Help??


in reply to Regexp help

Why not use split?
$ perl -E '$string = "0.740234|0.758789|0.748047|0.749023|0.748047|0.7 +54883|0.743164|0.748047|0.780273|0.739258|0.765625|0.761719|0.760742| +||||0.75293|0.742188"; say $_ for (split /\|/, $string); ' 0.740234 0.758789 0.748047 0.749023 0.748047 0.754883 0.743164 0.748047 0.780273 0.739258 0.765625 0.761719 0.760742 0.75293 0.742188

NOTE: Keep in mind that when matching | in split (or another regex situation), you need to escape it: \|

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found