Quick question: I have a regexp, ^(?:\b[A-Z]+\b\s+)+(.*)\d{8}
, that gives two capture groups. I would like to replace capture group 1 with a whitespace. Is that possible?
If I do replace with: \1
it replaces TEST TESTER Hello, world. Another word here. 75793250
-> with Hello, world. Another word here
. I want this result: TEST TESTER 75793250
. Replacing the \1
with a whitespace.
(?: ...)
is a non-capturing group.\1
it replacesTEST TESTER Hello, world. Another word here. 75793250
-> withHello, world. Another word here
. I want this result:TEST TESTER 75793250
. Replacing the\1
with a whitespace.\1
doesn't work for me in the latest version of Notepad++ however I could get it to work using$0
instead. It seems they changed the group replacement syntax.