The R Project SVN R

Rev

Rev 85065 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85065 Rev 90027
Line 18... Line 18...
18
}
18
}
19
\details{
19
\details{
20
  Internally, \code{\link{sub}(re, "", *, perl = TRUE)}, i.e., PCRE
20
  Internally, \code{\link{sub}(re, "", *, perl = TRUE)}, i.e., PCRE
21
  library regular expressions are used.
21
  library regular expressions are used.
22
  For portability, the default \sQuote{whitespace} is the character class
22
  For portability, the default \sQuote{whitespace} is the character class
23
  \code{[ \\t\\r\\n]} (space, horizontal tab, carriage return,
23
  \samp{[ \\t\\r\\n]} (space, horizontal tab, carriage return,
24
  newline).  Alternatively, \code{[\\h\\v]} is a good (PCRE)
24
  newline).  Alternatively, \samp{[\\h\\v]} is a good (PCRE)
25
  generalization to match all Unicode horizontal and vertical white
25
  generalization to match all Unicode horizontal and vertical white
26
  space characters, see also \url{https://www.pcre.org}.
26
  space characters, see also \url{https://www.pcre.org}.
27
}
27
}
28
\examples{
28
\examples{
29
x <- "  Some text. "
29
x <- "  Some text. "