4 ms·
Perl6 made a lot of improvements https://docs.perl6.org/language/regexes https://docs.perl6.org/language/regexes Technically not regular expressions since they
by adrusi 10y ago
Perl6 made a lot of improvements https://docs.perl6.org/language/regexes https://docs.perl6.org/language/regexes
Technically not regular expressions since they are appropriate for matching much more than regular grammars, but that's true for almost any programming language's "regular expressions".
- 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. :-) )