I want to pick up the pattern mn
followed by two numbers.
My text is :
apple 20127041 needs the following changes from ab34 to mn35-f01 priority - mn43 mn56.
The expected output is mn43
and mn56
. It should not pick up mn35-
I am not able to negate the -
.
dd <- c("apple 20127041 needs the following changes from ab34 to mn35-f01 priority - mn43 mn56 ")
str_extract_all(dd,'\\bmn[0-9]{2}\\b')
It is picking up - value as well.