I have a column with value as
\"RED LOBSTER CA04606\" or \"Red Lobster NewYork WY245\" n so on
How can I extract just the name Red Lobster or Red Lobster N
this is step by step
mystr<-"Red Lobster NewYork WY245" r<-regexpr("[A-Z][A-Z][0-9]+", mystr) s<-substr(mystr, r[1], r[1] + attr(r, "match.length")) mystr<-sub(s, "", mystr)