Hello, @laurent-coulon, @peterjones and All,
Even more simple :
SEARCH \b\d{4}\b OR \<\d{4}\>
REPLACE 0$0
Just use the $0 syntax, in replacement, which always represents the entire match. So, it avoids to add parentheses in order to store the match at group 1 :-)
Cheers,
guy038