I’ve come up with:
re.findall('([a-fA-F\d]*)', data)
but it’s not very fool proof, is there a better way to grab all MD5-hash codes?
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.
Well, since md5 is just a string of 32 hex digits, about all you could add to your expression is a check for ’32 digits’, perhaps something like this?