| 27 |
<li><a name="TOC12" href="#SEC12">SAVING AND RELOADING COMPILED PATTERNS</a> |
<li><a name="TOC12" href="#SEC12">SAVING AND RELOADING COMPILED PATTERNS</a> |
| 28 |
<li><a name="TOC13" href="#SEC13">SEE ALSO</a> |
<li><a name="TOC13" href="#SEC13">SEE ALSO</a> |
| 29 |
<li><a name="TOC14" href="#SEC14">AUTHOR</a> |
<li><a name="TOC14" href="#SEC14">AUTHOR</a> |
| 30 |
|
<li><a name="TOC15" href="#SEC15">REVISION</a> |
| 31 |
</ul> |
</ul> |
| 32 |
<br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br> |
<br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br> |
| 33 |
<P> |
<P> |
| 191 |
The following table shows additional modifiers for setting PCRE options that do |
The following table shows additional modifiers for setting PCRE options that do |
| 192 |
not correspond to anything in Perl: |
not correspond to anything in Perl: |
| 193 |
<pre> |
<pre> |
| 194 |
<b>/A</b> PCRE_ANCHORED |
<b>/A</b> PCRE_ANCHORED |
| 195 |
<b>/C</b> PCRE_AUTO_CALLOUT |
<b>/C</b> PCRE_AUTO_CALLOUT |
| 196 |
<b>/E</b> PCRE_DOLLAR_ENDONLY |
<b>/E</b> PCRE_DOLLAR_ENDONLY |
| 197 |
<b>/f</b> PCRE_FIRSTLINE |
<b>/f</b> PCRE_FIRSTLINE |
| 198 |
<b>/J</b> PCRE_DUPNAMES |
<b>/J</b> PCRE_DUPNAMES |
| 199 |
<b>/N</b> PCRE_NO_AUTO_CAPTURE |
<b>/N</b> PCRE_NO_AUTO_CAPTURE |
| 200 |
<b>/U</b> PCRE_UNGREEDY |
<b>/U</b> PCRE_UNGREEDY |
| 201 |
<b>/X</b> PCRE_EXTRA |
<b>/X</b> PCRE_EXTRA |
| 202 |
<b>/<cr></b> PCRE_NEWLINE_CR |
<b>/<cr></b> PCRE_NEWLINE_CR |
| 203 |
<b>/<lf></b> PCRE_NEWLINE_LF |
<b>/<lf></b> PCRE_NEWLINE_LF |
| 204 |
<b>/<crlf></b> PCRE_NEWLINE_CRLF |
<b>/<crlf></b> PCRE_NEWLINE_CRLF |
| 205 |
<b>/<any></b> PCRE_NEWLINE_ANY |
<b>/<anycrlf></b> PCRE_NEWLINE_ANYCRLF |
| 206 |
|
<b>/<any></b> PCRE_NEWLINE_ANY |
| 207 |
</pre> |
</pre> |
| 208 |
Those specifying line ending sequencess are literal strings as shown. This |
Those specifying line ending sequencess are literal strings as shown. This |
| 209 |
example sets multiline matching with CRLF as the line ending sequence: |
example sets multiline matching with CRLF as the line ending sequence: |
| 250 |
</P> |
</P> |
| 251 |
<P> |
<P> |
| 252 |
The <b>/B</b> modifier is a debugging feature. It requests that <b>pcretest</b> |
The <b>/B</b> modifier is a debugging feature. It requests that <b>pcretest</b> |
| 253 |
output a representation of the compiled byte code after compilation. |
output a representation of the compiled byte code after compilation. Normally |
| 254 |
|
this information contains length and offset values; however, if <b>/Z</b> is |
| 255 |
|
also present, this data is replaced by spaces. This is a special feature for |
| 256 |
|
use in the automatic test scripts; it ensures that the same output is generated |
| 257 |
|
for different internal link sizes. |
| 258 |
</P> |
</P> |
| 259 |
<P> |
<P> |
| 260 |
The <b>/L</b> modifier must be followed directly by the name of a locale, for |
The <b>/L</b> modifier must be followed directly by the name of a locale, for |
| 276 |
</P> |
</P> |
| 277 |
<P> |
<P> |
| 278 |
The <b>/D</b> modifier is a PCRE debugging feature, and is equivalent to |
The <b>/D</b> modifier is a PCRE debugging feature, and is equivalent to |
| 279 |
<b>/BI</b>, that is, both the \fP/B\fP and the <b>/I</b> modifiers. |
<b>/BI</b>, that is, both the <b>/B</b> and the <b>/I</b> modifiers. |
| 280 |
</P> |
</P> |
| 281 |
<P> |
<P> |
| 282 |
The <b>/F</b> modifier causes <b>pcretest</b> to flip the byte order of the |
The <b>/F</b> modifier causes <b>pcretest</b> to flip the byte order of the |
| 366 |
\<cr> pass the PCRE_NEWLINE_CR option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
\<cr> pass the PCRE_NEWLINE_CR option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
| 367 |
\<lf> pass the PCRE_NEWLINE_LF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
\<lf> pass the PCRE_NEWLINE_LF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
| 368 |
\<crlf> pass the PCRE_NEWLINE_CRLF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
\<crlf> pass the PCRE_NEWLINE_CRLF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
| 369 |
|
\<anycrlf> pass the PCRE_NEWLINE_ANYCRLF option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
| 370 |
\<any> pass the PCRE_NEWLINE_ANY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
\<any> pass the PCRE_NEWLINE_ANY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b> |
| 371 |
</pre> |
</pre> |
| 372 |
The escapes that specify line ending sequences are literal strings, exactly as |
The escapes that specify line ending sequences are literal strings, exactly as |
| 655 |
<br><a name="SEC13" href="#TOC1">SEE ALSO</a><br> |
<br><a name="SEC13" href="#TOC1">SEE ALSO</a><br> |
| 656 |
<P> |
<P> |
| 657 |
<b>pcre</b>(3), <b>pcreapi</b>(3), <b>pcrecallout</b>(3), <b>pcrematching</b>(3), |
<b>pcre</b>(3), <b>pcreapi</b>(3), <b>pcrecallout</b>(3), <b>pcrematching</b>(3), |
| 658 |
<b>pcrepartial</b>(d), \fPpcrepattern\fP(3), <b>pcreprecompile</b>(3). |
<b>pcrepartial</b>(d), <b>pcrepattern</b>(3), <b>pcreprecompile</b>(3). |
| 659 |
</P> |
</P> |
| 660 |
<br><a name="SEC14" href="#TOC1">AUTHOR</a><br> |
<br><a name="SEC14" href="#TOC1">AUTHOR</a><br> |
| 661 |
<P> |
<P> |
| 662 |
Philip Hazel |
Philip Hazel |
| 663 |
<br> |
<br> |
| 664 |
University Computing Service, |
University Computing Service |
| 665 |
<br> |
<br> |
| 666 |
Cambridge CB2 3QH, England. |
Cambridge CB2 3QH, England. |
| 667 |
|
<br> |
| 668 |
</P> |
</P> |
| 669 |
|
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
| 670 |
<P> |
<P> |
| 671 |
Last updated: 30 November 2006 |
Last updated: 16 April 2007 |
| 672 |
|
<br> |
| 673 |
|
Copyright © 1997-2007 University of Cambridge. |
| 674 |
<br> |
<br> |
|
Copyright © 1997-2006 University of Cambridge. |
|
| 675 |
<p> |
<p> |
| 676 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |
| 677 |
</p> |
</p> |