First page Back Continue Last page Overview Graphics
Backtracking Control Verbs
(*THEN)
- When backtracked into causes the pattern to backtrack directly to the next alternation in the pattern.
- Can be thought of as an if/then statement for regular expressions.
- /COND1 (*THEN) REST1 | COND2 (*THEN) REST2/
- When not used in an alternation acts just like (*PRUNE) would.
- In Perl6 this is called the “cut group” operator.