The R Project SVN R

Rev

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

Rev 68948 Rev 71627
Line 1... Line 1...
1
% File src/library/base/man/grepRaw.Rd
1
% File src/library/base/man/grepRaw.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2011 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{grepRaw}
6
\name{grepRaw}
7
\title{Pattern Matching for Raw Vectors}
7
\title{Pattern Matching for Raw Vectors}
8
\alias{grepRaw}
8
\alias{grepRaw}
Line 78... Line 78...
78
  \link{regular expression} (aka \code{\link{regexp}}) for the details
78
  \link{regular expression} (aka \code{\link{regexp}}) for the details
79
  of the pattern specification.
79
  of the pattern specification.
80
 
80
 
81
  \code{\link{grep}} for matching character vectors.
81
  \code{\link{grep}} for matching character vectors.
82
}
82
}
-
 
83
\examples{
-
 
84
grepRaw("no match", "textText")  # integer(0): no match
-
 
85
grepRaw("adf", "adadfadfdfadadf") # 3 - the first match
-
 
86
grepRaw("adf", "adadfadfdfadadf", all=TRUE, fixed=TRUE)
-
 
87
## [1]  3  6 13 -- three matches
-
 
88
}
83
\keyword{utilities}
89
\keyword{utilities}