Pam Apple
Pam Apple

Reputation: 103

Notepad++ how to delete second set of same character in a line

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

Answers (1)

t3hn00b
t3hn00b

Reputation: 912

  1. CTRL + H

  2. Select Regular expression

  3. Type /(\w)+$ into Find what

  4. 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

Related Questions