To do that, you have to include all the remaining of your line into the matching pattern.
For example, let's say that you search for \d{3}
and have the following data:
qweqwe 123 rrr 445
test tetst
41 423 456
Search for: \d{3}(.*$)
Replace: REPLACEMENT$1
Will give you the following result:
qweqwe REPLACEMENT rrr 445
test tetst
41 REPLACEMENT 456
If you didn't had included the remaining line (.*
) the result would be:
qweqwe REPLACEMENT rrr REPLACEMENT
test tetst
41 REPLACEMENT REPLACEMENT
In Notepad++ to make this work, you must leave the ". matches newline" option unchecked.