I have the following string in Python.
"My number is 5"
How can I check to see if a string contains a number and subsequently extract it, thus giving me the string "5"?
Edit: By using the re module, I'm now getting the result [u,'5']. How can I get the number 5 out of this result?