r1chardj0n3s / parse

Parse strings using a specification based on the Python format() syntax.
http://pypi.python.org/pypi/parse
MIT License
1.72k stars 101 forks source link

Consider adding replace() ? #100

Closed florisla closed 4 years ago

florisla commented 4 years ago

Hi,

I find parse a lovely module which is much more intuitive than regular expressions. Thanks!

Most of the times I need to revert to re is when I want to replace text (using re.sub()).

For supporting this it would be great to have

Have you considered adding this?

I do realize it may be out of scope since parse is simply the reverse of format.

r1chardj0n3s commented 4 years ago

Yeah, I'm strongly leaning towards saying "just use format()" :)

florisla commented 4 years ago

That's fair; thanks for considering!