| 7 |
<p> |
<p> |
| 8 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |
| 9 |
</p> |
</p> |
| 10 |
<p> |
<p> |
| 11 |
This page is part of the PCRE HTML documentation. It was generated automatically |
This page is part of the PCRE HTML documentation. It was generated automatically |
| 12 |
from the original man page. If there is any nonsense in it, please consult the |
from the original man page. If there is any nonsense in it, please consult the |
| 13 |
man page, in case the conversion went wrong. |
man page, in case the conversion went wrong. |
| 14 |
<br> |
<br> |
| 15 |
<ul> |
<ul> |
| 16 |
<li><a name="TOC1" href="#SEC1">SYNOPSIS</a> |
<li><a name="TOC1" href="#SEC1">SYNOPSIS</a> |
| 17 |
<li><a name="TOC2" href="#SEC2">OPTIONS</a> |
<li><a name="TOC2" href="#SEC2">OPTIONS</a> |
| 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> |
| 668 |
</P> |
</P> |
| 669 |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
<br><a name="SEC15" href="#TOC1">REVISION</a><br> |
| 670 |
<P> |
<P> |
| 671 |
Last updated: 06 March 2007 |
Last updated: 16 April 2007 |
| 672 |
<br> |
<br> |
| 673 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2007 University of Cambridge. |
| 674 |
<br> |
<br> |