Try this:
set.seed(1234)
xstr <- replicate(100, paste(sample(letters), collapse = ''))
patt <- c('dmu', 'kpz', 'ajt')
sapply(patt, gregexpr, text = xstr)
On Wed, Oct 27, 2010 at 5:53 AM, makhdoomi wrote:
> Dear all,
>
> how can i search multiple text or string patterns in a text file.
> i have
Dear all,
how can i search multiple text or string patterns in a text file.
i have written the following script but it is for only single searches at a
time.
how can i get multiple searches e.g
"xyz","abc","pqr".at a time and can save the results to an out file.
script::
x<- "abc"
z<-NULL;for
2 matches
Mail list logo