Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: regular expression

by johngg (Canon)
on Jun 02, 2014 at 09:41 UTC ( [id://1088239]=note: print w/replies, xml ) Need Help??


in reply to Re: regular expression
in thread regular expression

/^\w+\)/ extracts a letter followed by a closing bracket

\w also matches digits.

$ perl -E 'say $1 if q{ab1d2f} =~ m{^(\w+)$};' ab1d2f $

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found