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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CTRL + HSelect
Regular expressionType
/(\w)+$intoFind whatReplace 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.