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...