'IPv4 address search using regular expression in Notepad++

I am trying to sanitize a configuration file in notepad++. Basically, I need to find and replace the IPv4 address with regular expression and replace only first two octet, I tried with following regular expression to search for IPV4, however didnt work in notepad++

\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(.(?1)){3}\b

Could anyone please help ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source