Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Regex Extraction Help

by Flexx (Pilgrim)
on Aug 09, 2012 at 17:02 UTC ( #986558=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # assuming the raw data is in $line.
    $line =~ m/^[^;]*;\s*([^;]*?)\s*;/
    
    # $1 now holds whatever is between the second and third 
    # semicolon, leading and trailing spaces trimmed.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-08-27 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls