The Python Oracle

Python string.replace regular expression

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: Lost Civilization

--

Chapters
00:00 Question
01:06 Accepted answer (Score 703)
01:47 Answer 2 (Score 499)
02:04 Answer 3 (Score 20)
02:19 Answer 4 (Score 11)
02:43 Thank you

--

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

Question links:
[posted previously]: https://stackoverflow.com/questions/3908...
[string.replace(pattern, sub)]: http://www.tutorialspoint.com/python/str...

Accepted answer links:
[v2]: https://docs.python.org/2/library/stdtyp...
[v3]: https://docs.python.org/3/library/stdtyp...
[v2]: https://docs.python.org/2/library/re.htm...
[v3]: https://docs.python.org/3/library/re.htm...

Answer 2 links:
[re.sub]: http://docs.python.org/2/library/re.html...

--

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

--

Tags
#python #regex #replace

#avk47