/[pcre]/code/trunk/doc/pcrepartial.3
ViewVC logotype

Diff of /code/trunk/doc/pcrepartial.3

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

revision 148 by ph10, Mon Apr 16 13:25:10 2007 UTC revision 155 by ph10, Tue Apr 24 13:36:11 2007 UTC
# Line 99  pattern, but the first two are partial m Line 99  pattern, but the first two are partial m
99  \fBpcre_dfa_exec()\fP matching (by means of the \eD escape sequence), produces  \fBpcre_dfa_exec()\fP matching (by means of the \eD escape sequence), produces
100  the following output:  the following output:
101  .sp  .sp
102      re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/      re> /^\ed?\ed(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\ed\ed$/
103    data> 25jun04\eP\eD    data> 25jun04\eP\eD
104     0: 25jun04     0: 25jun04
105    data> 23dec3\eP\eD    data> 23dec3\eP\eD
# Line 126  space as before, because this is where d Line 126  space as before, because this is where d
126  are stored. Here is an example using \fBpcretest\fP, using the \eR escape  are stored. Here is an example using \fBpcretest\fP, using the \eR escape
127  sequence to set the PCRE_DFA_RESTART option (\eP and \eD are as above):  sequence to set the PCRE_DFA_RESTART option (\eP and \eD are as above):
128  .sp  .sp
129      re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/      re> /^\ed?\ed(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\ed\ed$/
130    data> 23ja\eP\eD    data> 23ja\eP\eD
131    Partial match: 23ja    Partial match: 23ja
132    data> n05\eR\eD    data> n05\eR\eD

Legend:
Removed from v.148  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.5