| 52 |
required. Consider now this rewritten pattern, which matches exactly the same |
required. Consider now this rewritten pattern, which matches exactly the same |
| 53 |
strings: |
strings: |
| 54 |
.sp |
.sp |
| 55 |
([^<]++|<(?!inet)) |
([^<]++|<(?!inet))+ |
| 56 |
.sp |
.sp |
| 57 |
This uses very much less stack, because runs of characters that do not contain |
This uses very much less stack, because runs of characters that do not contain |
| 58 |
"<" are "swallowed" in one item inside the parentheses. Recursion happens only |
"<" are "swallowed" in one item inside the parentheses. Recursion happens only |
| 129 |
.rs |
.rs |
| 130 |
.sp |
.sp |
| 131 |
.nf |
.nf |
| 132 |
Last updated: 06 March 2007 |
Last updated: 12 March 2007 |
| 133 |
Copyright (c) 1997-2007 University of Cambridge. |
Copyright (c) 1997-2007 University of Cambridge. |
| 134 |
.fi |
.fi |