2 ms·
The "C-style comments" examples can be made a little easier to read using the alternate-style Ruby regex literal. %r{/\*(?~\*/)\*/} %r{\A/\*(?~\*/)\*/\z}
by smitherfield 10y ago
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 /**/*/