Saturday 15 June 2013

java - Can someone tell me the regex for a dateTimeString like: "YYYY/MM/DD HH:MM:SS" -


In addition, I really appreciate the explanation, sorry but I have never used regedx in my life And it can barely read.

  D {4} / \ d {2} / \ d {2} \s + \ D {2}: \ d {2}: \ d {2}   
  • < \ d is a number < Li> {4} is the amount of digits (just before the regexp part)
  • / is just a slash
  • < Code>: just one colon
  • \ s is any white spot
  • + one or more whitespace (The regexp part in front of it is correct)

    Note that this will be used for an early preliminary inquiry, but you will need to complete the date format such as SimpleDateFo Rmat Advertised Rohit Jain or John Skeet should use other ways to advertise.

No comments:

Post a Comment