Skip to content
Prev 307521 / 398506 Next

pattern matching

Hello,

Try the following.

pattern <- "between [[:digit:]]+ to [[:digit:]]+"

re <- regexpr(pattern, string)
regmatches(string, re)

Hope this helps,

Rui Barradas
Em 10-10-2012 12:45, arunkumar1111 escreveu: