Hi, your answer is pretty great. But what is wrong with my expression?
Code:
reg = /^\d{2}:\d{2} \d{2}\/\\d{2}\/\\d{4}$/
I am a novice. I spent a lot time, still could not figure out,
the one more question is how to seperate the string into five part.
such as
RegExp.$1 = ...// hour
RegExp.$2 = ...// minute
RegExp.$3 = ...// month
RegExp.$4 = ...// day
RegExp.$5 = ...// year
It needs to remove the special characters such ":","/".
Thanks!
|