Answer the question
In order to leave comments, you need to log in
What is the smallest regular expression for IP?
Daviche decided to see what the Internet says about this.
And to be honest, I was very disappointed, then real kilometer crutches do not pass all the validation.
In general, without thinking twice, I threw my own.
Is there any other way to reduce the size of the expression?
https://regex101.com/r/59OOQY/1
Condition:
Ipv4
exact match
inability to enter ip above 255
inability to enter any expression other than ip.
Exclude any left characters.
Minimum size.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question