/[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 1346 by ph10, Tue May 28 09:13:59 2013 UTC revision 1347 by ph10, Tue Jul 2 18:52:42 2013 UTC
# Line 1  Line 1 
1  .TH PCREPARTIAL 3 "20 February 2013" "PCRE 8.33"  .TH PCREPARTIAL 3 "02 July 2013" "PCRE 8.34"
2  .SH NAME  .SH NAME
3  PCRE - Perl-compatible regular expressions  PCRE - Perl-compatible regular expressions
4  .SH "PARTIAL MATCHING IN PCRE"  .SH "PARTIAL MATCHING IN PCRE"
# Line 280  Notice that when the match is complete, Line 280  Notice that when the match is complete,
280  not retain the previously partially-matched string. It is up to the calling  not retain the previously partially-matched string. It is up to the calling
281  program to do that if it needs to.  program to do that if it needs to.
282  .P  .P
283    That means that, for an unanchored pattern, if a continued match fails, it is
284    not possible to try again at a new starting point. All this facility is capable
285    of doing is continuing with the previous match attempt. In the previous
286    example, if the second set of data is "ug23" the result is no match, even
287    though there would be a match for "aug23" if the entire string were given at
288    once. Depending on the application, this may or may not be what you want.
289    The only way to allow for starting again at the next character is to retain the
290    matched part of the subject and try a new complete match.
291    .P
292  You can set the PCRE_PARTIAL_SOFT or PCRE_PARTIAL_HARD options with  You can set the PCRE_PARTIAL_SOFT or PCRE_PARTIAL_HARD options with
293  PCRE_DFA_RESTART to continue partial matching over multiple segments. This  PCRE_DFA_RESTART to continue partial matching over multiple segments. This
294  facility can be used to pass very long subject strings to the DFA matching  facility can be used to pass very long subject strings to the DFA matching
# Line 462  Cambridge CB2 3QH, England. Line 471  Cambridge CB2 3QH, England.
471  .rs  .rs
472  .sp  .sp
473  .nf  .nf
474  Last updated: 20 February 2013  Last updated: 02 July 2013
475  Copyright (c) 1997-2013 University of Cambridge.  Copyright (c) 1997-2013 University of Cambridge.
476  .fi  .fi

Legend:
Removed from v.1346  
changed lines
  Added in v.1347

  ViewVC Help
Powered by ViewVC 1.1.5