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

Re: Behavior of /g when there are capture groups (/n)

by tye (Sage)
on Apr 21, 2016 at 14:57 UTC ( [id://1161106]=note: print w/replies, xml ) Need Help??


in reply to Behavior of /g when there are capture groups

my @excerpts = $fc =~ /(?n:$re2)/g;

From perlre:

n
Prevent the grouping metacharacters () from capturing. This modifier, new in 5.22 ...

- tye        

Replies are listed 'Best First'.
Re^2: Behavior of /g when there are capture groups (/n)
by ExReg (Priest) on Apr 21, 2016 at 15:05 UTC

    That is exactly what I was looking for. Too bad I only have 5.8.8...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161106]
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: (5)
As of 2024-04-24 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found