I am seeking to extract every time an open parenthesis + any number of dots + close parenthesis happens within my string.
The following is my R code:
pos_test <- "..((((............))))))))))....((........))(((....)))..."
pos_test_matrix <- unlist(strsplit(pos_test, ""))
grep(pos_test_matrix, pattern = "[(]+[.]+[)]")
Please advise, the grep returns integer(0)
What I'd like is the following: