I tried to find a solution for this for a very long time and any other question with this topic just wouldn't give me the needed answer. I am trying to replace the string between ' ' with an empty string, so deleting it.
I have
pattern <- " 'ABV22341.1 profilin-like protein'"
and I am trying to use gsub() like
gsub(*insert regex here*, "", pattern)
but I am struggling to find a matching expression, I only find expressions that match everything except the whitespaces at the beginning.
Is there a good solution? I would really appreciate it!
Edit
The desired output would be
[1] " ''"