| 454 |
data> xyz |
data> xyz |
| 455 |
No match |
No match |
| 456 |
</pre> |
</pre> |
| 457 |
|
Note that unset capturing substrings that are not followed by one that is set |
| 458 |
|
are not returned by <b>pcre_exec()</b>, and are not shown by <b>pcretest</b>. In |
| 459 |
|
the following example, there are two capturing substrings, but when the first |
| 460 |
|
data line is matched, the second, unset substring is not shown. An "internal" |
| 461 |
|
unset substring is shown as "<unset>", as for the second data line. |
| 462 |
|
<pre> |
| 463 |
|
re> /(a)|(b)/ |
| 464 |
|
data> a |
| 465 |
|
0: a |
| 466 |
|
1: a |
| 467 |
|
data> b |
| 468 |
|
0: b |
| 469 |
|
1: <unset> |
| 470 |
|
2: b |
| 471 |
|
</pre> |
| 472 |
If the strings contain any non-printing characters, they are output as \0x |
If the strings contain any non-printing characters, they are output as \0x |
| 473 |
escapes, or as \x{...} escapes if the <b>/8</b> modifier was present on the |
escapes, or as \x{...} escapes if the <b>/8</b> modifier was present on the |
| 474 |
pattern. See below for the definition of non-printing characters. If the |
pattern. See below for the definition of non-printing characters. If the |
| 689 |
</P> |
</P> |
| 690 |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
| 691 |
<P> |
<P> |
| 692 |
Last updated: 11 September 2007 |
Last updated: 19 November 2007 |
| 693 |
<br> |
<br> |
| 694 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2007 University of Cambridge. |
| 695 |
<br> |
<br> |