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 7072251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:47:09+00:00 2026-05-28T05:47:09+00:00

It would be great if someone could help me with a Regex for phone

  • 0

It would be great if someone could help me with a Regex for phone numbers. Following are the conditions:

  • If + is present, then it should be the first character
  • Allowed characters are numbers ( ) space – and .
  • Minimum of 6 numbers and max 12
  • ( , ) and space can come anywhere in the string
  • – shouldn’t be the first and last character and shouldn’t appear immediately after +, if + is present.

Here are some valid numbers:

  • +93483227359
  • +1 703 335 65123
  • 34565464
  • 001 (703) 332-6261
  • +1703.338.6512
  • +934-83227359
  • (111)123-4567
  • 111-123-4567

Thanks in advance

  • 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-28T05:47:10+00:00Added an answer on May 28, 2026 at 5:47 am

    Try with:

    ^\+?(\d[\d-. ]+)?(\([\d-. ]+\))?[\d-. ]+\d$
    

    However it does not handle number counting

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

Sidebar

Related Questions

if someone could help me with a conceptual question it would be great: Suppose
I searched around quite a bit, it would be great if someone could link
I'm just switching from Emacs to IDEA and it would be a great help
I was wondering if someone could help me get pointers to solve this problem.
EDIT: I added a bounty, if someone could help me figure out what I
Still completely stuck with regex's and square brackets. Hopefully someone can help me out.
I wonder whether someone could help me please. I've been trying to find a
I was hoping someone could help clarify my options regarding refactoring methods from code-behinds
Would be great to get some direction re trying to use sqlite for my
While editing .scm files it would be great if Vim would automatically put the

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.