The R Project SVN R

Rev

Rev 77164 | Rev 78962 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77164 Rev 77174
Line 293... Line 293...
293
  used inside a character class (with PCRE1, they are treated as characters
293
  used inside a character class (with PCRE1, they are treated as characters
294
  \samp{X}, \samp{R} and \samp{B}; with PCRE2 they cause an error).
294
  \samp{X}, \samp{R} and \samp{B}; with PCRE2 they cause an error).
295
 
295
 
296
  A hyphen (minus) inside a character class is treated as a range, unless it
296
  A hyphen (minus) inside a character class is treated as a range, unless it
297
  is first or last character in the class definition.  It can be quoted to
297
  is first or last character in the class definition.  It can be quoted to
298
  represent the hypen literal (\samp{\\-}).  PCRE1 allows an unquoted hyphen
298
  represent the hyphen literal (\samp{\\-}).  PCRE1 allows an unquoted hyphen
299
  at some other locations inside a character class where it cannot represent
299
  at some other locations inside a character class where it cannot represent
300
  a valid range, but PCRE2 reports an error in such cases.
300
  a valid range, but PCRE2 reports an error in such cases.
301
 
301
 
302
  In UTF-8 mode, some Unicode properties may be supported via
302
  In UTF-8 mode, some Unicode properties may be supported via
303
  \samp{\p{xx}} and \samp{\P{xx}} which match characters with and
303
  \samp{\p{xx}} and \samp{\P{xx}} which match characters with and
Line 305... Line 305...
305
  properties see the PCRE documentation, but for example \samp{Lu} is
305
  properties see the PCRE documentation, but for example \samp{Lu} is
306
  \sQuote{upper case letter} and \samp{Sc} is \sQuote{currency symbol}.
306
  \sQuote{upper case letter} and \samp{Sc} is \sQuote{currency symbol}.
307
  (This support depends on the PCRE library being compiled with
307
  (This support depends on the PCRE library being compiled with
308
  \sQuote{Unicode property support} which can be checked \emph{via}
308
  \sQuote{Unicode property support} which can be checked \emph{via}
309
  \code{\link{pcre_config}}. PCRE2 when compiled with Unicode support always
309
  \code{\link{pcre_config}}. PCRE2 when compiled with Unicode support always
310
  supports also Unicode properies.)
310
  supports also Unicode properties.)
311
 
311
 
312
  The sequence \samp{(?#} marks the start of a comment which continues
312
  The sequence \samp{(?#} marks the start of a comment which continues
313
  up to the next closing parenthesis.  Nested parentheses are not
313
  up to the next closing parenthesis.  Nested parentheses are not
314
  permitted.  The characters that make up a comment play no part at all in
314
  permitted.  The characters that make up a comment play no part at all in
315
  the pattern matching.
315
  the pattern matching.