C
C
cataclysm882021-05-21 07:15:33
Notepad++
cataclysm88, 2021-05-21 07:15:33

How to add a word in the middle of certain lines in Notepad++?

Let's say I have code:

{
        X, Y
        X, Y
}


How to add letter Z in the middle of both lines X, Y?
To make it happen:
{
X, Z, Y
X, Z, Y
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-05-21
@cataclysm88

Find: ^\h*X,
Replace:$0 Z,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question