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?
isdigit()
Example:
line = "hello 12 hi 89"
Result:
[12, 89]
← Назад к списку