Xylight
I’m the developer of the Photon client. Try it out
- 1 Post
- 3 Comments
Joined 2 years ago
Cake day: July 22nd, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
As in a regex or …?
An ipv4 parser would also be sorta difficult.
you have to account for the fact that all the octets can be added to decimal: http://2130706433 (valid 127.0.0.1)
or the fact that octets can be in different formats: http://0x7F.0x0.0x0.0x1 (127.0.0.1)
or the fact that you can mix octet formats: http://0xC0.0250.0.1 (192.168.0.1)
Xylight@lemdro.idto Programmer Humor@programming.dev•Stop comparing programming languagesEnglish1·17 days agodeleted by creator
Well the IPv4 spec only allows 4 octets, so having 5 or more is impossible. We could fix it by changing the protocol, but at that point it’s more worth it to just migrate to IPv6.