My data:
d1 <- "GET /api/dir/100%ABC/user/prints/abcd1111/file"
d2 <- "GET /api/dir/100%ABC/prints/efgh1111/file"
I want to extract the string:user/prints or prints part from my data.
I know how to extract between 2 certain strings like:
str_extract(d1, "(?<=/dir/)(.*)(?=%ABC)")
to get the number 100.
How to extract after %ABC/ and end with prints(contains prints) so I can get :user/prints or prints from same script.