Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Trying to count the captures in a compiled regular expression

by hv (Prior)
on May 03, 2004 at 02:11 UTC ( [id://349900]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      /(?x:((?-x:)) # (comment)
      )/
    
  2. or download this
      /((?-x:)) # (comment)
      /x
    
  3. or download this
                else if (s[2] == '{' /* This should match regcomp.c */
                         || ((s[2] == 'p' || s[2] == '?') && s[3] == '{'))
    
  4. or download this
      our $re_true = qr{(?=)}x;
      our $re_false = qr{(?!)}x;
    ...
        )+?
        (??{ $count == 0 ? $re_true : $re_false })
      /xgc;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found