Basically, I have a string like this:
text text text text text 1/12/2012 text text text text
I need to somehow get that date out of the string. I’m terrible with regular expressions, and I was wondering if there’s an easy way to get it with jQuery.
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.
You don’t need jQuery for this, just use a regular expression, eg.
Note, that this only extracts strings that look like a date and they may be invalid.