The Python Oracle

How to extract numbers from a string in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle

--

Chapters
00:00 Question
00:26 Accepted answer (Score 685)
01:07 Answer 2 (Score 714)
01:53 Answer 3 (Score 109)
02:45 Answer 4 (Score 87)
03:15 Thank you

--

Full question
https://stackoverflow.com/questions/4289...

Accepted answer links:
[regex mini-language]: https://docs.python.org/3/library/re.htm...
[jmnas's answer below]: https://stackoverflow.com/questions/4289...

Answer 3 links:
[AWS Glue built-in regex]: http://docs.aws.amazon.com/glue/latest/d...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #regex #string #numbers

#avk47