--- code/trunk/doc/html/pcretest.html 2007/12/12 17:03:50 285 +++ code/trunk/doc/html/pcretest.html 2007/12/17 14:46:11 286 @@ -454,6 +454,21 @@ data> xyz No match +Note that unset capturing substrings that are not followed by one that is set +are not returned by pcre_exec(), and are not shown by pcretest. In +the following example, there are two capturing substrings, but when the first +data line is matched, the second, unset substring is not shown. An "internal" +unset substring is shown as "<unset>", as for the second data line. +
+    re> /(a)|(b)/
+  data> a
+   0: a
+   1: a
+  data> b
+   0: b
+   1: <unset>
+   2: b
+
If the strings contain any non-printing characters, they are output as \0x escapes, or as \x{...} escapes if the /8 modifier was present on the pattern. See below for the definition of non-printing characters. If the @@ -674,7 +689,7 @@


REVISION

-Last updated: 11 September 2007 +Last updated: 19 November 2007
Copyright © 1997-2007 University of Cambridge.