Reputation: 103
I have a text files that contains multiple lines, each line has the following format
string1/string2/string3
all 3 strings are arbitrary. I want to remove /string3
for all lines.
Anyone have any suggestion?
Thank you in advance!
Upvotes: 0
Views: 358
Reputation: 912
CTRL + H
Select Regular expression
Type /(\w)+$
into Find what
Replace with nothing
Of course you may have to fiddle around with the regular expression according to your data, but that's the way to go.
Upvotes: 2