The Python Oracle

How can I find all matches to a regular expression in Python?

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

--

Track title: CC L Beethoven - Piano Sonata No 8 in C

--

Chapters
00:00 Question
00:32 Accepted answer (Score 798)
01:03 Thank you

--

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

Accepted answer links:
[re.findall(pattern, string)]: http://docs.python.org/library/re.html#r...
[re.finditer(pattern, string)]: http://docs.python.org/library/re.html#r...
[MatchObject]: https://docs.python.org/3/library/re.htm...

--

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

--

Tags
#python #regex #search

#avk47