What would be regular expression for this : 10/04/2012 3:02 AM in php
I’m searching all day and can’t find any one.
I’m new to regular expressions.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
\dmeans digit. If you only want to check the general format, then useIn PHP, to find a timestamp in the string
$subject:If you need to check whether the entire string fits this format, use
instead (and then use a date library to check the date for validity).