Skip to content
Prev 305591 / 398506 Next

two questions about character manipulation

Hello,

Try the following.

1)
pattern <- "response."
m <- regexpr(pattern, ex) #gregexpr to get all "response"
regmatches(ex, m)

2)
gsub("\\$", "\\.", ex)

Hope this helps,

Rui Barradas
Em 16-09-2012 15:35, ?zg?r Asar escreveu: