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

  1. In the Regular Expression field, type the regular expression.
  2. In the Replace box, type the text that should replace the text that matches the pattern of the regular expression.
  3. In the Text box, type or paste example text.
  4. Click Test and check that the predicted text is matched by the regular expression.
  5. Click Replace.

Results

The text that matched the regular expression pattern (highlighted in red) is replaced with the text in the Replace box.