/[pcre]/code/trunk/doc/html/pcretest.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcretest.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 517 by ph10, Tue Mar 30 11:11:52 2010 UTC revision 518 by ph10, Tue May 18 15:47:01 2010 UTC
# Line 204  effect as they do in Perl. For example: Line 204  effect as they do in Perl. For example:
204  The following table shows additional modifiers for setting PCRE options that do  The following table shows additional modifiers for setting PCRE options that do
205  not correspond to anything in Perl:  not correspond to anything in Perl:
206  <pre>  <pre>
207      <b>/8</b>              PCRE_UTF8
208      <b>/?</b>              PCRE_NO_UTF8_CHECK
209    <b>/A</b>              PCRE_ANCHORED    <b>/A</b>              PCRE_ANCHORED
210    <b>/C</b>              PCRE_AUTO_CALLOUT    <b>/C</b>              PCRE_AUTO_CALLOUT
211    <b>/E</b>              PCRE_DOLLAR_ENDONLY    <b>/E</b>              PCRE_DOLLAR_ENDONLY
# Line 211  not correspond to anything in Perl: Line 213  not correspond to anything in Perl:
213    <b>/J</b>              PCRE_DUPNAMES    <b>/J</b>              PCRE_DUPNAMES
214    <b>/N</b>              PCRE_NO_AUTO_CAPTURE    <b>/N</b>              PCRE_NO_AUTO_CAPTURE
215    <b>/U</b>              PCRE_UNGREEDY    <b>/U</b>              PCRE_UNGREEDY
216      <b>/W</b>              PCRE_UCP
217    <b>/X</b>              PCRE_EXTRA    <b>/X</b>              PCRE_EXTRA
218    <b>/&#60;JS&#62;</b>           PCRE_JAVASCRIPT_COMPAT    <b>/&#60;JS&#62;</b>           PCRE_JAVASCRIPT_COMPAT
219    <b>/&#60;cr&#62;</b>           PCRE_NEWLINE_CR    <b>/&#60;cr&#62;</b>           PCRE_NEWLINE_CR
# Line 221  not correspond to anything in Perl: Line 224  not correspond to anything in Perl:
224    <b>/&#60;bsr_anycrlf&#62;</b>  PCRE_BSR_ANYCRLF    <b>/&#60;bsr_anycrlf&#62;</b>  PCRE_BSR_ANYCRLF
225    <b>/&#60;bsr_unicode&#62;</b>  PCRE_BSR_UNICODE    <b>/&#60;bsr_unicode&#62;</b>  PCRE_BSR_UNICODE
226  </pre>  </pre>
227  Those specifying line ending sequences are literal strings as shown, but the  The modifiers that are enclosed in angle brackets are literal strings as shown,
228  letters can be in either case. This example sets multiline matching with CRLF  including the angle brackets, but the letters can be in either case. This
229  as the line ending sequence:  example sets multiline matching with CRLF as the line ending sequence:
230  <pre>  <pre>
231    /^abc/m&#60;crlf&#62;    /^abc/m&#60;crlf&#62;
232  </pre>  </pre>
233  Details of the meanings of these PCRE options are given in the  As well as turning on the PCRE_UTF8 option, the <b>/8</b> modifier also causes
234    any non-printing characters in output strings to be printed using the
235    \x{hh...} notation if they are valid UTF-8 sequences. Full details of the PCRE
236    options are given in the
237  <a href="pcreapi.html"><b>pcreapi</b></a>  <a href="pcreapi.html"><b>pcreapi</b></a>
238  documentation.  documentation.
239  </P>  </P>
240  <br><b>  <br><b>
241  Finding all matches in a string  Finding all matches in a string
# Line 260  There are yet more modifiers for control Line 266  There are yet more modifiers for control
266  operates.  operates.
267  </P>  </P>
268  <P>  <P>
 The <b>/8</b> modifier causes <b>pcretest</b> to call PCRE with the PCRE_UTF8  
 option set. This turns on support for UTF-8 character handling in PCRE,  
 provided that it was compiled with this support enabled. This modifier also  
 causes any non-printing characters in output strings to be printed using the  
 \x{hh...} notation if they are valid UTF-8 sequences.  
 </P>  
 <P>  
 If the <b>/?</b> modifier is used with <b>/8</b>, it causes <b>pcretest</b> to  
 call <b>pcre_compile()</b> with the PCRE_NO_UTF8_CHECK option, to suppress the  
 checking of the string for UTF-8 validity.  
 </P>  
 <P>  
269  The <b>/+</b> modifier requests that as well as outputting the substring that  The <b>/+</b> modifier requests that as well as outputting the substring that
270  matched the entire pattern, pcretest should in addition output the remainder of  matched the entire pattern, pcretest should in addition output the remainder of
271  the subject string. This is useful for tests where the subject contains  the subject string. This is useful for tests where the subject contains
# Line 720  Cambridge CB2 3QH, England. Line 714  Cambridge CB2 3QH, England.
714  </P>  </P>
715  <br><a name="SEC15" href="#TOC1">REVISION</a><br>  <br><a name="SEC15" href="#TOC1">REVISION</a><br>
716  <P>  <P>
717  Last updated: 26 March 2010  Last updated: 12 May 2010
718  <br>  <br>
719  Copyright &copy; 1997-2010 University of Cambridge.  Copyright &copy; 1997-2010 University of Cambridge.
720  <br>  <br>

Legend:
Removed from v.517  
changed lines
  Added in v.518

  ViewVC Help
Powered by ViewVC 1.1.5