0

I'm trying to remove everything before "? - " I've run this

gsub(".*? - ", "",  "Question X? - Text_A - Text_B")
[1] "Text_B"

It's removed everything before the other hyphen in the text. The result I'm after is this

[1] "Text_A - Text_B"

Any help is greatly appreciated. Thanks

C.Cheung
  • 695
  • 3
  • 11

0 Answers0