in reply to Re: [OT] Thoughts on Ruby's new absent operator?
in thread [OT] Thoughts on Ruby's new absent operator?

The C-style comments pattern isn't really a practical example. They can be matched more easily as qr{/\*.*?\*/}, but the problem is stated in an unnatural way to exclude that.

Replies are listed 'Best First'.
Re^3: [OT] Thoughts on Ruby's new absent operator?
by perlancar (Hermit) on Mar 25, 2017 at 02:55 UTC
    But non-greedy matching is known to be slow. Maybe I'll need to make some benchmarks.