I've been playing with regex for the first time, and having a great deal of trouble trying to get a simple IPv4 address expression to work. Can anyone see what I am doing wrong here.
Ok, I was having issues with the subgroup in PowerShell and .net. I ended up with the following: (?>[0-9]{1,3}.){3}[0-9]{1,3}
The above matches 127.0.0.1, but not 127.0.0 or shorter ones (it was doing so with the first one I proposed). It should work. At least works in Windows + .Net.