DEV Community

Discussion on: Python Utility Belt: Replacing differents chars in a String.

Collapse
 
pragmaticpi profile image
Piyush Kumar • Edited

Good one. In my opinion at the end of the day, you will use replace method only. Re lib is useful if you have some string to be validated first and then replaced.