I was just doing some validation for a WOL application I’m making and needed to verify the IP was correct, here’s my approach. I’m wondering if it could be any shorter / more efficient?
([0-2]?[0-9]{1,2}\.){3}([0-2]?[0-9]{1,2})
I was just doing some validation for a WOL application I’m making and needed to verify the IP was correct, here’s my approach. I’m wondering if it could be any shorter / more efficient?
([0-2]?[0-9]{1,2}\.){3}([0-2]?[0-9]{1,2})
© 2023 mcgrane.uk — Powered by WordPress
Theme by Anders Noren — Up ↑
Leave a Reply