I'm trying to find a way to split a character column with an ellipsis in the middle into two columns, everything before the ellipsis and everything after.
For example, if I have:
a <- "60.4 (b)(33) and (e)(1) revised....................................46111"
How do I split that into "60.4 (b)(33) and (e)(1) revised" and "46111"?
I have tried:
str_extract(a, ".*\\.{2,}")
for the first part, and for the second part:
str_extract(a, "\\.{2,}.*")
but that keeps the ellipsis in both, which I'd like to drop.