Answer the question
In order to leave comments, you need to log in
What does the given string mean in Java String?
There was a need to prescribe IP Address in edittext. It was decided to search and find a solution everyone knows where.
The solution is concise and understandable for me, but there was a small question on the following line:
str.matches("^\\d{1,3}(\\.(\\d{1,3}(\\.(\\d{1,3}(\\.(\\d{1,3})?)?)?)?)?)?"))
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