X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/6bf342e1eb87c656de34d668d7303a7d0138e89a..bb576ff7109d75428c71b7c65e5124706f730482:/doc/doc-txt/pcretest.txt diff --git a/doc/doc-txt/pcretest.txt b/doc/doc-txt/pcretest.txt index 1a0424c20..d93ec26d1 100644 --- a/doc/doc-txt/pcretest.txt +++ b/doc/doc-txt/pcretest.txt @@ -151,18 +151,19 @@ PATTERN MODIFIERS The following table shows additional modifiers for setting PCRE options that do not correspond to anything in Perl: - /A PCRE_ANCHORED - /C PCRE_AUTO_CALLOUT - /E PCRE_DOLLAR_ENDONLY - /f PCRE_FIRSTLINE - /J PCRE_DUPNAMES - /N PCRE_NO_AUTO_CAPTURE - /U PCRE_UNGREEDY - /X PCRE_EXTRA - / PCRE_NEWLINE_CR - / PCRE_NEWLINE_LF - / PCRE_NEWLINE_CRLF - / PCRE_NEWLINE_ANY + /A PCRE_ANCHORED + /C PCRE_AUTO_CALLOUT + /E PCRE_DOLLAR_ENDONLY + /f PCRE_FIRSTLINE + /J PCRE_DUPNAMES + /N PCRE_NO_AUTO_CAPTURE + /U PCRE_UNGREEDY + /X PCRE_EXTRA + / PCRE_NEWLINE_CR + / PCRE_NEWLINE_LF + / PCRE_NEWLINE_CRLF + / PCRE_NEWLINE_ANYCRLF + / PCRE_NEWLINE_ANY Those specifying line ending sequencess are literal strings as shown. This example sets multiline matching with CRLF as the line ending @@ -202,7 +203,11 @@ PATTERN MODIFIERS subject contains multiple copies of the same substring. The /B modifier is a debugging feature. It requests that pcretest out- - put a representation of the compiled byte code after compilation. + put a representation of the compiled byte code after compilation. Nor- + mally this information contains length and offset values; however, if + /Z is also present, this data is replaced by spaces. This is a special + feature for use in the automatic test scripts; it ensures that the same + output is generated for different internal link sizes. The /L modifier must be followed directly by the name of a locale, for example, @@ -331,6 +336,8 @@ DATA LINES or pcre_dfa_exec() \ pass the PCRE_NEWLINE_CRLF option to pcre_exec() or pcre_dfa_exec() + \ pass the PCRE_NEWLINE_ANYCRLF option to pcre_exec() + or pcre_dfa_exec() \ pass the PCRE_NEWLINE_ANY option to pcre_exec() or pcre_dfa_exec() @@ -486,7 +493,7 @@ RESTARTING AFTER A PARTIAL MATCH can restart the match with additional subject data by means of the \R escape sequence. For example: - re> /^?(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)$/ + re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/ data> 23ja\P\D Partial match: 23ja data> n05\R\D @@ -613,8 +620,11 @@ SEE ALSO AUTHOR Philip Hazel - University Computing Service, + University Computing Service Cambridge CB2 3QH, England. -Last updated: 30 November 2006 -Copyright (c) 1997-2006 University of Cambridge. + +REVISION + + Last updated: 24 April 2007 + Copyright (c) 1997-2007 University of Cambridge.