Is this article actual for 2022?
https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s15.html
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a simple question - Is this regex rule actual for validating domain name in 2022?
/(?P<domain>[a-z0-9][a-z0-9\-]{0,63}\.[a-z\.]{1,5})$/i
If it's not OK for validating domain name in 2022, then how do I rebuild it to achieve correct validating rule?
Please or to participate in this conversation.