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

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

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

revision 1404 by ph10, Tue Nov 19 15:36:57 2013 UTC revision 1436 by ph10, Wed Jan 8 17:29:39 2014 UTC
# Line 1  Line 1 
1  .TH PCRESYNTAX 3 "12 November 2013" "PCRE 8.34"  .TH PCRESYNTAX 3 "08 January 2014" "PCRE 8.35"
2  .SH NAME  .SH NAME
3  PCRE - Perl-compatible regular expressions  PCRE - Perl-compatible regular expressions
4  .SH "PCRE REGULAR EXPRESSION SYNTAX SUMMARY"  .SH "PCRE REGULAR EXPRESSION SYNTAX SUMMARY"
# Line 309  but some of them use Unicode properties Line 309  but some of them use Unicode properties
309  .rs  .rs
310  .sp  .sp
311    \eK          reset start of match    \eK          reset start of match
312    .sp
313    \eK is honoured in positive assertions, but ignored in negative ones.
314  .  .
315  .  .
316  .SH "ALTERNATION"  .SH "ALTERNATION"
# Line 354  but some of them use Unicode properties Line 356  but some of them use Unicode properties
356    (?x)            extended (ignore white space)    (?x)            extended (ignore white space)
357    (?-...)         unset option(s)    (?-...)         unset option(s)
358  .sp  .sp
359  The following are recognized only at the start of a pattern or after one of the  The following are recognized only at the very start of a pattern or after one
360  newline-setting options with similar syntax:  of the newline or \eR options with similar syntax. More than one of them may
361    appear.
362  .sp  .sp
363    (*LIMIT_MATCH=d) set the match limit to d (decimal number)    (*LIMIT_MATCH=d) set the match limit to d (decimal number)
364    (*LIMIT_RECURSION=d) set the recursion limit to d (decimal number)    (*LIMIT_RECURSION=d) set the recursion limit to d (decimal number)
365      (*NO_AUTO_POSSESS) no auto-possessification (PCRE_NO_AUTO_POSSESS)
366    (*NO_START_OPT) no start-match optimization (PCRE_NO_START_OPTIMIZE)    (*NO_START_OPT) no start-match optimization (PCRE_NO_START_OPTIMIZE)
367    (*UTF8)         set UTF-8 mode: 8-bit library (PCRE_UTF8)    (*UTF8)         set UTF-8 mode: 8-bit library (PCRE_UTF8)
368    (*UTF16)        set UTF-16 mode: 16-bit library (PCRE_UTF16)    (*UTF16)        set UTF-16 mode: 16-bit library (PCRE_UTF16)
# Line 370  Note that LIMIT_MATCH and LIMIT_RECURSIO Line 374  Note that LIMIT_MATCH and LIMIT_RECURSIO
374  limits set by the caller of pcre_exec(), not increase them.  limits set by the caller of pcre_exec(), not increase them.
375  .  .
376  .  .
377    .SH "NEWLINE CONVENTION"
378    .rs
379    .sp
380    These are recognized only at the very start of the pattern or after option
381    settings with a similar syntax.
382    .sp
383      (*CR)           carriage return only
384      (*LF)           linefeed only
385      (*CRLF)         carriage return followed by linefeed
386      (*ANYCRLF)      all three of the above
387      (*ANY)          any Unicode newline sequence
388    .
389    .
390    .SH "WHAT \eR MATCHES"
391    .rs
392    .sp
393    These are recognized only at the very start of the pattern or after option
394    setting with a similar syntax.
395    .sp
396      (*BSR_ANYCRLF)  CR, LF, or CRLF
397      (*BSR_UNICODE)  any Unicode newline sequence
398    .
399    .
400  .SH "LOOKAHEAD AND LOOKBEHIND ASSERTIONS"  .SH "LOOKAHEAD AND LOOKBEHIND ASSERTIONS"
401  .rs  .rs
402  .sp  .sp
# Line 457  pattern is not anchored. Line 484  pattern is not anchored.
484    (*THEN:NAME)    equivalent to (*MARK:NAME)(*THEN)    (*THEN:NAME)    equivalent to (*MARK:NAME)(*THEN)
485  .  .
486  .  .
 .SH "NEWLINE CONVENTIONS"  
 .rs  
 .sp  
 These are recognized only at the very start of the pattern or after a  
 (*BSR_...), (*UTF8), (*UTF16), (*UTF32) or (*UCP) option.  
 .sp  
   (*CR)           carriage return only  
   (*LF)           linefeed only  
   (*CRLF)         carriage return followed by linefeed  
   (*ANYCRLF)      all three of the above  
   (*ANY)          any Unicode newline sequence  
 .  
 .  
 .SH "WHAT \eR MATCHES"  
 .rs  
 .sp  
 These are recognized only at the very start of the pattern or after a  
 (*...) option that sets the newline convention or a UTF or UCP mode.  
 .sp  
   (*BSR_ANYCRLF)  CR, LF, or CRLF  
   (*BSR_UNICODE)  any Unicode newline sequence  
 .  
 .  
487  .SH "CALLOUTS"  .SH "CALLOUTS"
488  .rs  .rs
489  .sp  .sp
# Line 508  Cambridge CB2 3QH, England. Line 512  Cambridge CB2 3QH, England.
512  .rs  .rs
513  .sp  .sp
514  .nf  .nf
515  Last updated: 12 November 2013  Last updated: 08 January 2014
516  Copyright (c) 1997-2013 University of Cambridge.  Copyright (c) 1997-2014 University of Cambridge.
517  .fi  .fi

Legend:
Removed from v.1404  
changed lines
  Added in v.1436

  ViewVC Help
Powered by ViewVC 1.1.5