I would like to remove everything after a space in a string.
For example:
\"my string is sad\"
should return
\"m
If you want to do it with a regex:
gsub('([A-z]+) .*', '\\1', 'my string is sad')