Re:Regexper – Regular expressions visualizer
by tzs on Wednesday January 31, 2018 @06:52AM
(#16273164)
That covers the most common format accepted by the BSD and POSIX inet_* functions, but misses the less common ones.
If anyone wants to have a go at a more complete one, here are some test cases for you that it misses, using Google's well known public name server 8.8.4.4. These all work in the classic command line tools like ping on MacOS, Linux, and Windows:
134743044
8.525316
8.8.1028
POSIX and BSD also allow the numbers to be written in hex:
If anyone wants to have a go at a more complete one, here are some test cases for you that it misses, using Google's well known public name server 8.8.4.4. These all work in the classic command line tools like ping on MacOS, Linux, and Windows:
POSIX and BSD also allow the numbers to be written in hex: or octal: or mixed: