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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:24:57+00:00 2026-06-17T23:24:57+00:00

I tried like this it is not working, but not works for value 005959

  • 0

I tried like this it is not working, but not works for value 005959 format HHMMSS

if(Pattern.matches("^([0-23])([0-59])([0-59])$", value))
{
    SimpleDateFormat dformat = new SimpleDateFormat("HHMMSS");
    dformat.setLenient(false);
    dformat.parse(value);
    return true;
}
  • 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-17T23:24:58+00:00Added an answer on June 17, 2026 at 11:24 pm

    You can’t do numeric ranges like that. To validate 1-24 (what’s wrong with 00 by the way? and since when was 60 valid in the other positions?) you’d need to do it digit by digit like this:

    (0[1-9]|1[0-9]|2[0-4])
    

    That is, if the first digit is 0 then 1-9 must follow; if 1 then any can follow; if 2 then 0-4 must follow. But why use Regex for this anyway? In full:

    ^(0[1-9]|1[0-9]|2[0-4])(0[1-9]|[1-5][0-9]|60)(0[1-9]|[1-5][0-9]|60)$
    

    But still, check comments on 0 and 60 values…

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

Sidebar

Related Questions

I tried something like this but it just makes the background of the image
I just tried the tooltip like this Easy image preview ... But i cant
I tried to load my Array s like this, but it loads just first
I tried following the gradle manual with their example like this but copyJars is
I fell like this is a pretty simple fix, but i have tried so
I have tried many ways of executing this but its not happening .. here
I have a function which uses getJSON but its not working like I expected.
My issue: This code works in firefox chrome and safari but not in IE
Getting error when I tried like this: $ci =& get_instance(); $ci->db->select(CONCAT_WS(' ',users.name_first,users.name_last) AS user_name,CONCAT_WS('
Questions exactly like this have been asked before, i've read them all and tried

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.