Tutorial 8 : Regular Expressions in Python-escape character in regex

Gaurav Patil
Oct 5, 2021

--

Photo by Ilya Pavlov on Unsplash

Missed previous tutorial ? — Click here

Escape character- backslash (\)

It is used to escape the metacharacter in regex since it cannot be grabbed or matched as it is. So we need to use escape character (\) before metacharacter.

Let’s understand this using examples :

Till now we have covered regex pretty much. I hope now you are comfortable with this topic. There is only one tutorial remaining.

So take a deep breathe and move to the next tutorial.

Happy learning !!!

--

--

Gaurav Patil
Gaurav Patil

Written by Gaurav Patil

Machine Learning Engineer drawing insights from mathematics.

Responses (1)