Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8873907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:35:08+00:00 2026-06-14T18:35:08+00:00

As regex could be not the optimal solution for validating the IP addresses, as

  • 0

As regex could be not the optimal solution for validating the IP addresses, as my need would be to validate for both IPv4 and IPv6. Is there a solution that already addresses the support of input of IPv4 as well as IPv6.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:35:09+00:00Added an answer on June 14, 2026 at 6:35 pm

    The normal TextBox supports the input of both IPv4 addresses and IPv6 addresses as well as any other text. If you’re looking for a control that accepts only IPv4 addresses and IPv6 addresses — don’t do this.

    IP addresses (and in particular IPv6 addresses) are seldom entered from scratch. Most of the time they are copied from somewhere else and are not necessarily in the right format. If the address is not in the right format, the user often cannot change it in the place where it’s copied from — the user needs to be able to paste it into the TextBox and edit it there. This is not possible if the TextBox does not accept invalid input.

    Solution: use a normal TextBox and validate the input when the user clicks the Submit/Next/OK button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any application for a regex split() operation that could not be performed
I need a function that could generate a regex. For example if I write
I could not find an optimal solution for this problem. The idea is to
Please could someone explain to me why this regex does not match anything, when
could someone help me with the regex pattern that i could use to match
I've searched several posts that might provide the answer I need, but I could
I'm not familiar with regex, and it would be great if someone giving a
I need help using regular expressions. Ihave read the Java Regex notes, but could
I'm trying to match a pattern, but I could not fix my REGEX to
I could do it with regex (something like myString.match(/^[A-Za-z0-9]$/) ) but it seems like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.