perl6/doc/lib/X/Syntax/Regex/Adverb
doc src
(title) class X::Syntax::Regex::Adverb
class X::Syntax::Regex::Adverb does X::Syntax { }
Syntax error thrown when an unrecognized or illegal regex adverb is
encountered.
For example rx:g/a/ dies with
===SORRY!===
Adverb g not allowed on rx
because :g belongs to a match operation, not a regex itself.
Methods
(head2) adverb
method adverb() returns Str:D
Returns the illegally used adverb
(head2) construct
method construct() returns Str:D
Returns the name of the construct that adverb was used on ( m , ms ,
rx , s , ss ).