RegEx in Python (Part-10) | Substitution

Learn how to do substitutions at pattern matches in this video.

“sub” method of pattern objects will replace all the leftmost non-overlapping occurrences of a pattern in a given string and return the new string as result.

Resource Material:

More awesome topics covered here:
RegEx in Python:
Introduction to Numpy:
Introduction to Matplotlib:
Introduction to Pandas:…

, , , ,

1 thought on “RegEx in Python (Part-10) | Substitution

Leave a Reply

Your email address will not be published. Required fields are marked *