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

Re: perl regex

by GrandFather (Sage)
on Nov 13, 2016 at 04:23 UTC ( #1175802=note: print w/replies, xml ) Need Help??


in reply to perl regex

You need to read the regex documentation. perlretut is a good place to start.

Your immediate problem is using [...] instead of (...) for capturing. The square bracket version matches any one of the characters in the set of characters given.

Premature optimization is the root of all job security

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1175802]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2018-07-18 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (383 votes). Check out past polls.

    Notices?