How to replace string in R?
I have been trying to replace )
bracket space to )|
bracket pipe but it seems str_replace
uses regex which I am not able to figure out for this pattern. It should be simple if one knows regex but I am struggling at this atleast for now.
How to remove duplicate character sequences within a string?
I have a column in a tibble that should always have an 8-character string as its value, for example ABCDEF12
.