x $foo =~ /( (:? . | \n (?! \n\n) )+ ) /x
You have a bug: (:? should be (?:. That's what ends up as your second capturing group.
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re: Non-capturing zero-width negative lookahead
by Sidhekin
in thread Non-capturing zero-width negative lookahead
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |