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

Re: words with numbers in them

by Paladin (Vicar)
on Jul 31, 2018 at 18:52 UTC ( [id://1219591]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $names = "1Petrus2 Joh4an Smit 2johnny99 Julius 789";
    my @words = split /\s+/, $names;
    my @numwords = grep /\d/, @words;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found