/[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 392 by ph10, Tue Mar 17 21:30:30 2009 UTC revision 429 by ph10, Tue Sep 1 16:10:16 2009 UTC
# Line 372  recognized: Line 372  recognized:
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>
374    \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)
375    \P         pass the PCRE_PARTIAL option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>    \P         pass the PCRE_PARTIAL_SOFT option to <b>pcre_exec()</b> or <b>pcre_dfa_exec()</b>; if used twice, pass the
376                   PCRE_PARTIAL_HARD option
377    \Qdd       set the PCRE_MATCH_LIMIT_RECURSION limit to dd (any number of digits)    \Qdd       set the PCRE_MATCH_LIMIT_RECURSION limit to dd (any number of digits)
378    \R         pass the PCRE_DFA_RESTART option to <b>pcre_dfa_exec()</b>    \R         pass the PCRE_DFA_RESTART option to <b>pcre_dfa_exec()</b>
379    \S         output details of memory get/free calls during matching    \S         output details of memory get/free calls during matching
# Line 453  This section describes the output when t Line 454  This section describes the output when t
454  <P>  <P>
455  When a match succeeds, pcretest outputs the list of captured substrings that  When a match succeeds, pcretest outputs the list of captured substrings that
456  <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
457  the whole pattern. Otherwise, it outputs "No match" or "Partial match"  the whole pattern. Otherwise, it outputs "No match" or "Partial match:"
458  when <b>pcre_exec()</b> returns PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL,  followed by the partially matching substring when <b>pcre_exec()</b> returns
459  respectively, and otherwise the PCRE negative error number. Here is an example  PCRE_ERROR_NOMATCH or PCRE_ERROR_PARTIAL, respectively, and otherwise the PCRE
460  of an interactive <b>pcretest</b> run.  negative error number. Here is an example of an interactive <b>pcretest</b> run.
461  <pre>  <pre>
462    $ pcretest    $ pcretest
463    PCRE version 7.0 30-Nov-2006    PCRE version 7.0 30-Nov-2006
# Line 536  the subject where there is at least one Line 537  the subject where there is at least one
537     2: tan     2: tan
538  </pre>  </pre>
539  (Using the normal matching function on this data finds only "tang".) The  (Using the normal matching function on this data finds only "tang".) The
540  longest matching string is always given first (and numbered zero).  longest matching string is always given first (and numbered zero). After a
541    PCRE_ERROR_PARTIAL return, the output is "Partial match:", followed by the
542    partially matching substring.
543  </P>  </P>
544  <P>  <P>
545  If <b>/g</b> is present on the pattern, the search for further matches resumes  If <b>/g</b> is present on the pattern, the search for further matches resumes
# Line 703  Cambridge CB2 3QH, England. Line 706  Cambridge CB2 3QH, England.
706  </P>  </P>
707  <br><a name="SEC15" href="#TOC1">REVISION</a><br>  <br><a name="SEC15" href="#TOC1">REVISION</a><br>
708  <P>  <P>
709  Last updated: 10 March 2009  Last updated: 29 August 2009
710  <br>  <br>
711  Copyright &copy; 1997-2009 University of Cambridge.  Copyright &copy; 1997-2009 University of Cambridge.
712  <br>  <br>

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

  ViewVC Help
Powered by ViewVC 1.1.5