Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: RegExp, grabbing first name

by kcott (Archbishop)
on Feb 26, 2016 at 08:20 UTC ( [id://1156190]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /^[^, ]+(?:,\s+\w+|)\s+(\w+)/
    
  2. or download this
    $ perl -wnE '/^[^, ]+(?:,\s+\w+|)\s+(\w+)/; say $1;'
    SMITH, A DOE
    DOE
    BULLOCK JOE A
    JOE
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found