Thank you @snippsat !
Meanwhile I found a really interesting documentation to read
https://docs.python.org/3/howto/regex.html
I've read it fully, and have totally change my code and RegEx that now work in a pure Pytonic and efficient way :D
And indeed I used
I have to admit I'm not a fan of RegEx :/ I wish something else exist to do more or less the same.
Meanwhile I found a really interesting documentation to read
https://docs.python.org/3/howto/regex.html
I've read it fully, and have totally change my code and RegEx that now work in a pure Pytonic and efficient way :D
And indeed I used
sub
and subn
from re
neat !I have to admit I'm not a fan of RegEx :/ I wish something else exist to do more or less the same.