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 taking refuge in the Monastery: (6)
As of 2015-07-04 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls