rock::match_consecutive_delimiters(
c(1, 3, 5, 10, 19, 25, 30, 70)
);
exampleText <- c(
"some text",
"delimiter",
"more text",
"delimiter",
"filler text",
"intentionally left blank",
"delimiter",
"final text",
"delimiter"
);
rock::match_consecutive_delimiters(
grep(
"delimiter",
exampleText
)
);
Run the code above in your browser using DataLab