Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: RegExp, grabbing first name

by poj (Abbot)
on Feb 25, 2016 at 19:46 UTC ( [id://1156135]=note: print w/replies, xml ) Need Help??


in reply to Re^2: RegExp, grabbing first name
in thread RegExp, grabbing first name

Same for list

#!perl use strict; my @list = ('BULLOCK JOE A','SMITH, A DOE'); for my $name (@list){ my ($surname,$first) = $name =~ /(\w{3,})/g; print "$first : $name\n"; }
poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found