Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Regular expressions

by jbware (Chaplain)
on Apr 13, 2005 at 13:35 UTC ( [id://447373]=note: print w/replies, xml ) Need Help??


in reply to Regular expressions

In addition to previous mentions, you also need () around whatever you want to capture in the $1 variable.
if ($temp2 =~ m/^([a-zA-Z]+)$/) {$naam = $1;}

-jbWare

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found