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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:54:32+00:00 2026-05-23T23:54:32+00:00

I want to verify if the date provided is in the correct format. It

  • 0

I want to verify if the date provided is in the correct format. It doesn’t matter if the date is correct or not. I am only interested in the format. And, I don’t how to handle it. Here is the regular expression that I am using

My complete expression is .+(\b[0-9]?\b).+(\d{2}/\d{2}/\d{4})

but the date part is

(\d{2}/\d{2}/\d{4})

This works good if the date is 07/02/2011 but it doesn’t work if the date is 7/2/2011

I tried (\d{1-2}/\d{1-2}/\d{4})

but that didn’t help.

  • 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-23T23:54:32+00:00Added an answer on May 23, 2026 at 11:54 pm

    try the following (It replaces the dashes with commas):

    \d{1,2}/\d{1,2}/\d{4}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to verify that I'm not missing something here... so bear with
I want to verify whether an e-mail is real or not. Some body told
I want to verify that my understanding is correct. This kind of thing is
just want to verify that database partition is implemented only at the database level,
I want to verify the file name with the specified format(YYYYMMDDHHmmRate).for eg , if
I want to verify the transaction receipt within my app, Here is my code,
I have an input string and I want to verify that it contains: Only
I want to verify if a computer is running .net 3.5 or 3.5 sp1,
I want to verify if I'm in the last cell of the UITable. Should
I want to verify that the images, css, and javascript files that are part

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.