3 ms·
I agree fully. Regexes get misused and people who don't speak regex blame regex rather than the abusers. Regexes don't even need to be terse: Perl doesn't have
by 3chelon 8y ago
I agree fully. Regexes get misused and people who don't speak regex blame regex rather than the abusers.
Regexes don't even need to be terse: Perl doesn't have too many fans these days but its implementation of regexes was not only exceptionally advanced but it also allowed you to format regexes across multiple lines like code, and add inline comments to it, which meant you could make them very readable.
I mean sure, you could also add Perl statements that were executed inside the regex, but that's another case of abuse!