3 ms·
It has lots of comments inside the regexes. How would this better comment support look like?
by staunton 3y ago
It has lots of comments inside the regexes. How would this better comment support look like?
- sundarurfriend 3y agoThese are not technically "comments inside the regexes", that would be something like the "Delete (most) C comments." regex here: https://perldoc.perl.org/perlre#/x-and-/xx https://perldoc.perl.org/perlre#/x-and-/xx Here, instead, they've used string juxtaposition cleverly to write comments between parts of the regex/string. It effectively serves the same purpose though.