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

  • SEARCH
  • Home
  • 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 6727063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:00:13+00:00 2026-05-26T10:00:13+00:00

I need to validate a domain registration as it cannot be made of numbers

  • 0

I need to validate a domain registration as it cannot be made of numbers only and the validation need to fit in the way my algorithm works, that is to return full domain name(without the .com, .net, etc extensions) if it is correct.

I’ve tryed a few expressions with no success:

^[^0-9]+$ # that one wont let he type a number
^\w[^0-9]+\w$ # that wont work too

Can someone help me?

  • 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-05-26T10:00:13+00:00Added an answer on May 26, 2026 at 10:00 am

    So, just to be clear, you want it to return False on strings that contain ONLY numbers? Try this:

    EDIT 4 Based on literal interpretation of the question, this is all you need:

    \D
    

    That will match True for any string containing a character that’s not a number.

    However, based on the fact that you want to match URLs, you probably want something more like this:

    ^\w*[a-zA-Z_]\w*$
    

    That will match any string containing alphanumerics and _s, as long as it contains at least one letter or _.

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

Sidebar

Related Questions

I need to validate a basic authorization header that is being sent to my
I need to validate my textbox using JavaScript, so far i made this :
I have a text file having words that i need to validate. After following
I need to implement a wizardy, dynamic UI that uses complex validation of the
I need to validate that the text entered in a qlineedit has the form
Really got stuck on this simple regex. Need it to validate a string, that
I need to validate a domain name: google.com stackoverflow.com So a domain in its
I need a way to validate a user/password pair for native c++ on windows.
We say that model validation at controllers layer is the correct place to validate
I use NHibernate. I need to decide how validate domain entities. What do you

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.