Searches for dotted decimal IPv4 Adresses and saves the numbers in match groups.
This REGULAR EXPRESSION is just for searching for dotted decimal IPv4 Adresses.
Unlike a shorter one, this one is made for seeing the numbers in seperate Mach-groups-thingy.
I also included some unit tests.. But i think they are not needed.
Below are some tests:
Google DNS Server IP is 184.108.40.206. As a alternative you can use 220.127.116.11.
The IP 127.0.0.1 (also known as localhost) is a 'loopback' IP-Adress, pointing to your computer.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
Pinging google.com [18.104.22.168] with 32 bytes of data:
Reply from 22.214.171.124: bytes=32 time=42ms TTL=59
Reply from 126.96.36.199: bytes=32 time=55ms TTL=59
Reply from 188.8.131.52: bytes=32 time=35ms TTL=59
Reply from 184.108.40.206: bytes=32 time=27ms TTL=59
Ping statistics for 220.127.116.11:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 27ms, Maximum = 55ms, Average = 39ms