I have a string coming from db, for example:
"any string coming from db[090876]"
I want to just fetch the numeric data and use it. In this case I just want 090876. How can I do it in Python/Django? I have tried with ‘re’ but no luck.
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.
or digits only between parens with
dbbefore it to be safe: