Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

validate variable-length lines in one regex?

by uhClem (Scribe)
on Jul 06, 2015 at 18:03 UTC ( [id://1133403]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C31 6  3 2.4 1.5 2.6  
    C32 2  7 3 1.0  
    ...
    T11 2  1 0 6.0 1.1 2.2
    L06 1  1 0 1.0 3.3
    L06 1  4 0 1.1 1.8
    
  2. or download this
    ($t, $p, $s, $d) = (/^([A-Z]\d\d) +(1?\d) +(\d?\d(?:\.1)?) +([0-3]) /)
    + 
      or ($bad{$line++} = $_) && next;
    @cts = ($' =~ /(\d?\d\.\d)/g);
    
  3. or download this
    @allFields = (/patt1 patt2 patt3 patt19+/);
    

Log In?
Username:
Password:

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

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

    No recent polls found