348 |
(?(assert)... assertion condition |
(?(assert)... assertion condition |
349 |
. |
. |
350 |
. |
. |
351 |
|
.SH "BACKTRACKING CONTROL" |
352 |
|
.rs |
353 |
|
.sp |
354 |
|
The following act immediately they are reached: |
355 |
|
.sp |
356 |
|
(*ACCEPT) force successful match |
357 |
|
(*FAIL) force backtrack; synonym (*F) |
358 |
|
.sp |
359 |
|
The following act only when a subsequent match failure causes a backtrack to |
360 |
|
reach them. They all force a match failure, but they differ in what happens |
361 |
|
afterwards. Those that advance the start-of-match point do so only if the |
362 |
|
pattern is not anchored. |
363 |
|
.sp |
364 |
|
(*COMMIT) overall failure, no advance of starting point |
365 |
|
(*PRUNE) advance to next starting character |
366 |
|
(*SKIP) advance start to current matching position |
367 |
|
(*THEN) local failure, backtrack to next alternation |
368 |
|
. |
369 |
|
. |
370 |
.SH "CALLOUTS" |
.SH "CALLOUTS" |
371 |
.rs |
.rs |
372 |
.sp |
.sp |
395 |
.rs |
.rs |
396 |
.sp |
.sp |
397 |
.nf |
.nf |
398 |
Last updated: 06 August 2007 |
Last updated: 08 August 2007 |
399 |
Copyright (c) 1997-2007 University of Cambridge. |
Copyright (c) 1997-2007 University of Cambridge. |
400 |
.fi |
.fi |