Replacing Patterns in Strings

In the following lesson, you will learn how to replace patterns in a string.


Imagine a situation where you not only want to find an expression, as we did in the previous lesson, but also want to replace it with another expression. For instance, let’s say you’re filling out an online form and where it says name, you’ll need to replace it with your actual name.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy