3 ms·
Wow, that file must be paradise for regex nerds, assuming there are any such...
by staunton 3y ago
Wow, that file must be paradise for regex nerds, assuming there are any such...
- tessierashpool 3y agothere are, I am, and it's not (sorry). some languages have the ability to comment regexes, and that would be very useful here.
- staunton 3y agoIt 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.
- sundarurfriend 3y agothere are, I am, and it is. (Except for the proliferation of backslashes due to C not having "raw" strings.)