Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check validation of an IP Address. #2466

Closed
Simran1604 opened this issue Oct 4, 2021 · 3 comments
Closed

Check validation of an IP Address. #2466

Simran1604 opened this issue Oct 4, 2021 · 3 comments

Comments

@Simran1604
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Check if a given string is a valid IP address or not.

Describe the solution you'd like
I'd like to use simple and efficient concepts of Strings to solve this problem.

Describe alternatives you've considered
I think the above approach would work so I don't have an alternative as of now.

Example
Input: 6665..555
Output: Not a valid IP Address.

Input: 333.111.111.111
Output: It is a valid IP Address.

Please assign me this issue.

@siriak
Copy link
Member

siriak commented Oct 4, 2021

333.111.111.111 is not a valid IPv4 address

@siriak siriak closed this as completed Oct 4, 2021
@Simran1604
Copy link
Contributor Author

Pardon, my bad.
It should have been 222.111.111.111

@siriak
Copy link
Member

siriak commented Oct 4, 2021

No need for such validation, it's really simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants