I have to detect Name: and assign the value to any variable. I am trying to use str_match, but it takes only Sunil
x = c("Name: Sunil Raperia ")
xx = str_match(x, "Name: (.*?) ")
xx
I want to assign Sunil Raperia to xx.
I have to detect Name: and assign the value to any variable. I am trying to use str_match, but it takes only Sunil
x = c("Name: Sunil Raperia ")
xx = str_match(x, "Name: (.*?) ")
xx
I want to assign Sunil Raperia to xx.