SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the following regex to get integer and floating values from a string:
re.findall(r'[\d\.\d]+', 'hello -34 42 +34.478m 88 cricket -44.3') ['34', '42', '34.478', '88', '44.3']
Thanks Rex