I'm trying to parse a number of log files for IP addresses using PowerShell, but within those files I also have a number of false positives which are actually version numbers. There may be more but as a first start I wanted to grab all IPs that are not preceded by Version=.
I've tried a number of different variations of my Regex with no real success and hacking around in regex101.com has also given me no fruits.
(?<!Version=)(?<Address>((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))
Ideally it should be something like:
Not Match Version=10.0.0.1
Match 10.0.0.1
- Match IPAddress=10.0.0.1
- Match IP=10.0.0.1
etc.
powershell-versiontags, as those should be used when the issue is about a specific version.