How to extract numbers from a string in Python?
I would like to extract all the numbers contained in a string. Which is better suited for the purpose, regular expressions or the isdigit()
method?
I would like to extract all the numbers contained in a string. Which is better suited for the purpose, regular expressions or the isdigit()
method?