4 ms·
> Ignoring the flame bait, for me the only things I wish more regex engines supported (cough JavaScript) is the ability to ignore whitespace, and have named gro
by jhgb 5y ago
> Ignoring the flame bait, for me the only things I wish more regex engines supported (cough JavaScript) is the ability to ignore whitespace, and have named groups.
Irregex? http://synthcode.com/scheme/irregex/ http://synthcode.com/scheme/irregex/
- cdrini 5y agoInteresting! I don't think that's what I mean. I don't think I want it to be a part of the language like that, but that's a pretty neat idea. For example, python has an 'X' flag you can use when creating a regex to allow new lines and comments. Here's an example from my code: https://github.com/internetarchive/openlibrary/blob/1ac15a484695469791de546773021e7c7400c6a6/openlibrary/utils/lcc.py#L96-L109 https://github.com/internetarchive/openlibrary/blob/1ac15a48...