|
Perl 6
Perl 6 Regex Tablet: Revision 15
Overview - Chapter: 0:History, 1:Design, 2:Basics, 3:Var, 4:Op, 5:IO, 6:{}, 7:Sub, 8:OOP, 9:Rx, 10:Meta Larry Wall: We put the "Regular" back into "Expression". Like quotes, are Regular Expressions now a sublanguage, a language inside the language, instead of being just funny strings. They are parsed by a completely different set of rules, which are stored in the special variable $~Regex ($~Trans for transliterations and $~P5Regex for compatible Regexes). But these rules are made much more consistant with the main language than before. CharacterMetacharacterOperatorsrx// aka Q :regex // ModifierMethodscomb MatchingSubstitutionTransliterationmy $escaped = $html.trans([ '&', '<', '>' ] =>); Grammars
Overview - Chapter: 0:History, 1:Design, 2:Basics, 3:Var, 4:Op, 5:IO, 6:{}, 7:Sub, 8:OOP, 9:Rx, 10:Meta |