Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: what is the best way to seperate the digits and strings from variable ?

by polettix (Vicar)
on May 09, 2005 at 13:04 UTC ( #455164=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $variable = "abc123";
       my ($letters) = $variable =~ /^([a-zA-Z]*)/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://455164]
help
Chatterbox?
[Discipulus]: tybalt89 you must consider writing a book: The Perl regex approach to every problem

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-11-23 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (331 votes). Check out past polls.

    Notices?