Waveter
Waveter

Reputation: 990

Replace in notepad++ using regex

I have many line with the structure:

start...ABC...

In notepad++, how to replace ABC in all the lines start by start by another string (for example DEF)

Upvotes: 0

Views: 75

Answers (1)

mishik
mishik

Reputation: 10003

The regex would be:

Find what: ^(start.*)ABC

Replace with: $1DEF

^ - tells that regex should start at the start of the line and $1 will match whatever matched in first group, which is (start.*)

Upvotes: 2

Related Questions