http://www.perlmonks.org?node_id=11103991


in reply to Re: matching first paragraph satisfying condition
in thread matching first paragraph satisfying condition

s/(?:foo|bar)/baz/;
(non-capturing group)


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^3: matching first paragraph satisfying condition
by haukex (Chancellor) on Aug 06, 2019 at 09:12 UTC

    s/(?:foo|bar)/baz/ is pretty much identical to s/foo|bar/baz/, so I don't think that's the issue.