The R Project SVN R

Rev

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

Rev 27447 Rev 28124
Line 185... Line 185...
185
 
185
 
186
  For complete details please consult the man pages for PCRE, especially
186
  For complete details please consult the man pages for PCRE, especially
187
  \code{man pcrepattern} and \code{man pcreapi}) on your system or from
187
  \code{man pcrepattern} and \code{man pcreapi}) on your system or from
188
  the sources at
188
  the sources at
189
  \url{ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/}. If PCRE
189
  \url{ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/}. If PCRE
190
  support was compiled from the sources within \R, the PCRE version is 4.4
190
  support was compiled from the sources within \R, the PCRE version is 4.5
191
  as described here (version \eqn{\ge}{>=} 4.0 is required even if \R is
191
  as described here (version \eqn{\ge}{>=} 4.0 is required even if \R is
192
  configured to use the system's PCRE library).
192
  configured to use the system's PCRE library).
193
 
193
 
194
  All the regular expressions described for extended regular expressions
194
  All the regular expressions described for extended regular expressions
195
  are accepted except \code{\\<} and \code{\\>}: in Perl all backslashed
195
  are accepted except \code{\\<} and \code{\\>}: in Perl all backslashed
196
  metacharacters are alphanumeric and backslashed symbols always are
196
  metacharacters are alphanumeric and backslashed symbols always are
197
  interpreted as a literal character. \code{\{} is not special if it would
197
  interpreted as a literal character. \code{\{} is not special if it would
198
  be the start of an invalid interval specification. There can be more than
198
  be the start of an invalid interval specification.  There can be more than
199
  9 backreferences.
199
  9 backreferences.
200
 
200
 
201
  The construct \code{(?...)} is used for Perl extensions in a variety
201
  The construct \code{(?...)} is used for Perl extensions in a variety
202
  of ways depending on what immediately follows the \code{?}.
202
  of ways depending on what immediately follows the \code{?}.
203
 
203
 
Line 235... Line 235...
235
  \code{cntrl-x} for any \code{x}, \code{\\ddd} is the octal character
235
  \code{cntrl-x} for any \code{x}, \code{\\ddd} is the octal character
236
  \code{ddd} (for up to three digits unless interpretable as a
236
  \code{ddd} (for up to three digits unless interpretable as a
237
  backreference), and \code{\\xhh} specifies a character in hex.
237
  backreference), and \code{\\xhh} specifies a character in hex.
238
 
238
 
239
  Outside a character class, \code{\\b} matches a word boundary,
239
  Outside a character class, \code{\\b} matches a word boundary,
240
  \code{\\B} is its negation, \code{\\A} matches at start of subject (even
240
  \code{\\B} is its negation, \code{\\A} matches at start of a subject (even
241
  in multiline mode, unlike \code{^}), \code{\\Z} matches at end of a
241
  in multiline mode, unlike \code{^}), \code{\\Z} matches at end of a
242
  subject or before newline at end, \code{\\z} matches at end of a
242
  subject or before newline at end, \code{\\z} matches at end of a
243
  subject. and \code{\\G} matches at first matching position in a
243
  subject. and \code{\\G} matches at first matching position in a
244
  subject. \code{\\C} matches a single byte. including a newline.
244
  subject. \code{\\C} matches a single byte. including a newline.
245
 
245