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

H.Cheung
  • 855
  • 5
  • 12

0 Answers0