/[pcre]/code/branches/pcre16/doc/html/pcretest.html
ViewVC logotype

Diff of /code/branches/pcre16/doc/html/pcretest.html

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

revision 429 by ph10, Tue Sep 1 16:10:16 2009 UTC revision 453 by ph10, Fri Sep 18 19:12:35 2009 UTC
# Line 246  begins with a lookbehind assertion (incl Line 246  begins with a lookbehind assertion (incl
246  </P>  </P>
247  <P>  <P>
248  If any call to <b>pcre_exec()</b> in a <b>/g</b> or <b>/G</b> sequence matches an  If any call to <b>pcre_exec()</b> in a <b>/g</b> or <b>/G</b> sequence matches an
249  empty string, the next call is done with the PCRE_NOTEMPTY and PCRE_ANCHORED  empty string, the next call is done with the PCRE_NOTEMPTY_ATSTART and
250  flags set in order to search for another, non-empty, match at the same point.  PCRE_ANCHORED flags set in order to search for another, non-empty, match at the
251  If this second match fails, the start offset is advanced by one, and the normal  same point. If this second match fails, the start offset is advanced by one
252  match is retried. This imitates the way Perl handles such cases when using the  character, and the normal match is retried. This imitates the way Perl handles
253  <b>/g</b> modifier or the <b>split()</b> function.  such cases when using the <b>/g</b> modifier or the <b>split()</b> function.
254  </P>  </P>
255  <br><b>  <br><b>
256  Other modifiers  Other modifiers
# Line 370  recognized: Line 370  recognized:
370                 ated by next non-alphanumeric character)                 ated by next non-alphanumeric character)
371    \L         call pcre_get_substringlist() after a successful match    \L         call pcre_get_substringlist() after a successful match
372    \M         discover the minimum MATCH_LIMIT and MATCH_LIMIT_RECURSION settings    \M         discover the minimum MATCH_LIMIT and MATCH_LIMIT_RECURSION settings
373    \N         pass the PCRE_NOTEMPTY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \N         pass the PCRE_NOTEMPTY option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>; if used twice, pass the
374                   PCRE_NOTEMPTY_ATSTART option
375    \Odd       set the size of the output vector passed to <b>pcre_exec()</b> to dd (any number of digits)    \Odd       set the size of the output vector passed to <b>pcre_exec()</b> to dd (any number of digits)
376    \P         pass the PCRE_PARTIAL_SOFT option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>; if used twice, pass the    \P         pass the PCRE_PARTIAL_SOFT option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>; if used twice, pass the
377                 PCRE_PARTIAL_HARD option                 PCRE_PARTIAL_HARD option
# Line 454  This section describes the output when t Line 455  This section describes the output when t
455  <P>  <P>
456  When a match succeeds, pcretest outputs the list of captured substrings that  When a match succeeds, pcretest outputs the list of captured substrings that
457  <b>pcre_exec()</b> returns, starting with number 0 for the string that matched  <b>pcre_exec()</b> returns, starting with number 0 for the string that matched
458  the whole pattern. Otherwise, it outputs "No match" or "Partial match:"  the whole pattern. Otherwise, it outputs "No match" when the return is
459  followed by the partially matching substring when <b>pcre_exec()</b> returns  PCRE_ERROR_NOMATCH, and "Partial match:" followed by the partially matching
460  PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL, respectively, and otherwise the PCRE  substring when <b>pcre_exec()</b> returns PCRE_ERROR_PARTIAL. For any other
461  negative error number. Here is an example of an interactive <b>pcretest</b> run.  returns, it outputs the PCRE negative error number. Here is an example of an
462    interactive <b>pcretest</b> run.
463  <pre>  <pre>
464    $ pcretest    $ pcretest
465    PCRE version 7.0 30-Nov-2006    PCRE version 7.0 30-Nov-2006
# Line 706  Cambridge CB2 3QH, England. Line 708  Cambridge CB2 3QH, England.
708  </P>  </P>
709  <br><a name="SEC15" href="#TOC1">REVISION</a><br>  <br><a name="SEC15" href="#TOC1">REVISION</a><br>
710  <P>  <P>
711  Last updated: 29 August 2009  Last updated: 11 September 2009
712  <br>  <br>
713  Copyright &copy; 1997-2009 University of Cambridge.  Copyright &copy; 1997-2009 University of Cambridge.
714  <br>  <br>

Legend:
Removed from v.429  
changed lines
  Added in v.453

  ViewVC Help
Powered by ViewVC 1.1.5