I have a string variable with many observations. Some of the observations have a set of characters, //////, that is then followed by some more text, but different text in each case. I would like to delete the /////// and what follows. I'm hoping to find a way to delete starting at /////// at anything after, but to keep what comes before the ///////.
Here's is an example:
oldstring:
xxxxxx///////skflajf
rrrr333///////dosifjw
wwwwww
newstring:
xxxxxx
rrrr333
wwwwww
Thanks!
Here's is an example:
oldstring:
xxxxxx///////skflajf
rrrr333///////dosifjw
wwwwww
newstring:
xxxxxx
rrrr333
wwwwww
Thanks!
Comment