Text replacements
Replacing text that matches a specific pattern.
About this task
If you are using regular expressions to replace text that matches a specific pattern, you can use Expression Test to test that the replacement will be done correctly.
Procedure
- In the Regular Expression field, type the regular expression.
- In the Replace box, type the text that should replace the text that matches the pattern of the regular expression.
- In the Text box, type or paste example text.
- Click Test and check that the predicted text is matched by the regular expression.
- Click Replace.
Results
The text that matched the regular expression pattern (highlighted in red) is replaced with the text in the Replace box.