PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Find and replace text using regular expressions

Last modified: 11 September 2023

When you want to search and replace specific patterns of text, use regular expressions. They can help you in pattern matching, parsing, filtering of results, and so on. Once you learn the regex syntax, you can use it for almost any language.