Searching and replacing with regular expressions is equally easy and very simple in nature. To do that we will tweak our old code a little bit. We use “re” module and it does the simple jobs. Regular expression is itself a big topic. We try to understand the basic things so that we can use it in our future projects.