# Pick out pairs of consecutive word characters
match <- ore.search("(\\w)(\\w)", "This is a test", all=TRUE)
# Find the second matched substring ("is", from "This")
match[2]
# Find the content of the second group in the second match ("s")
match[2,2]
Run the code above in your browser using DataLab