| 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 |
| 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 |