Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Named capture backreferences cannot be used in character classes?

by davido (Archbishop)
on Sep 26, 2013 at 17:05 UTC ( #1055865=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    m/(?(?=Z|Y)[Z]|[Y])/
    
  2. or download this
    (?(DEFINE)
        (?<NAME_PAT>....)
    )
    
  3. or download this
    print "Yes"
      if $string =~ m/(?(?=')'[^']|)
                      (?(?=")"[^"]|)/x;
    
  4. or download this
    m/(?:'[^']|"[^"])/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-09-23 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?