|
|
|
|
|
by b2gills
3421 days ago
|
|
The design of regular expressions is different than any other version from any other language to improve readability along with other improvements. In Perl 6 regexes are seen as a type of method (that is they are literally implemented as a type of method in Rakudo) Grammars tend to look like a cross between BNF, and well Perl. https://stackoverflow.com/a/41770672/1337 Perl 6 regexes have longest term matching using |, or sequential matching like Perl 5 using ||. Since regexes are methods, they can take arguments as well. |
|