программа для тестирования регулярных выражений, совместимых с Perl (a program for testing Perl-compatible regular expressions.)
RESTARTING AFTER A PARTIAL MATCH
When the alternative matching function has given the
PCRE_ERROR_PARTIAL return, indicating that the subject partially
matched the pattern, you can restart the match with additional
subject data by means of the \R escape sequence. For example:
re>
/^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
data> 23ja\P\D
Partial match: 23ja
data> n05\R\D
0: n05
For further information about partial matching, see the
pcrepartial
documentation.