1 réponse
Tu pourrais utiliser re.sub(), c'est justement fait pour ça.
Quelques lectures:
http://www.amk.ca/python/howto/regex/regex.html
http://diveintopython.org/regular_expressions/index.html
Quelques lectures:
http://www.amk.ca/python/howto/regex/regex.html
http://diveintopython.org/regular_expressions/index.html