Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Regular Expression to Extract Anything from Colon Delimited String

by GuiPerl (Acolyte)
on Oct 01, 2014 at 19:03 UTC ( [id://1102573]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (<DATA>) {
        
    ...
    D. Green::9/16/1960:54:UNITED STATES OF AMERICA::::
    N/A::Vacant:UNASSIGNED::YELLOW::
    
  2. or download this
    nothing D2 DIRECTOR:D. Green:4/15/1953:61 XX:UNITED KINGDOM OF GREAT B
    +RITAIN AND NORTHERN IRELAND ::: nothing nothing   
    nothing D1 DEPUTY DIRECTOR:D. Green::6/20/1964:50:TUNISIA REPUBLIC OF 
    +::: nothing nothing   
    nothing P5 SENIOR POLICY OFFICER:D. Green::7/7/1954:60 GREEN:UNITED KI
    +NGDOM OF GREAT BRITAIN AND NORTHERN IRELAND ::: nothing nothing   
    ...
    nothing nothing N/A::Vacant:UNASSIGNED::YELLOW : nothing nothing   
    nothing nothing nothing  nothing nothing
    

Log In?
Username:
Password:

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

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

    No recent polls found