News for hackers. Stuff that matters.
Re:The New ‘Absent Operator’ in Ruby’s Regular Expressions by smitherfield on Thursday March 23, 2017 @01:44PM (#13942107)
The "C-style comments" examples can be made a little easier to read using the alternate-style Ruby regex literal.

  %r{/\*(?~\*/)\*/}
  %r{\A/\*(?~\*/)\*/\z}
  %r{\A/\*.*?\*/\z} # incorrect: matches /**/*/

There are no comments on this comment yet.