So I have a pattern:
hourPattern = re.compile('\d{2}:\d{2}')
And match against the compiled pattern
hourStart = hourPattern.match('Sat Jan 28 01:15:00 GMT 2012')
When I print hourStart it gives me None. Any help?
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.
Match expects the found value to be at the beginning of the string. You want search.