Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Regular Expressions

by stefp (Vicar)
on Jun 08, 2002 at 04:17 UTC ( [id://172740]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular Expressions
in thread Parenthesis usage in Regular Expressions

If you want grouping without capturing, use (?:...) instead of the (...) pattern.

In list context, you can get away with unwanted captures by using undef on the left hand side.

 my( $a, undef, $b) = m/(a)(b)(c)/;

-- stefp -- check out TeXmacs wiki

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-16 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found