3 ms·
> Perl6 made a lot of improvements https://docs.perl6.org/language/regexes https://docs.perl6.org/language/regexes IMO the word "improvements" should be in quo
by cyphar 10y ago
> Perl6 made a lot of improvements https://docs.perl6.org/language/regexes https://docs.perl6.org/language/regexes
IMO the word "improvements" should be in quotes. Pathological regular expressions are an issue because of things like back references and look-behind matching. If Perl hadn't enshrined the idea of "a regular expression for every problem" people would probably be less skeptical of regular expressions in code.
- berntb 10y agoSo why not use grammars, if regexps are too complex...? https://docs.perl6.org/language/grammars https://docs.perl6.org/language/grammars (The extensions to regexps in Perl 5 (and presumably now also in PCRE?) have made it possible to write them more like grammars than anything else. But you would probably not approve. :-) )