You can use a regular expression in match text fields.

You can learn more about regular expression here.

Here are some examples:

  1. The following expression will match any line which starts with 123 and ends with END_STRING. The special character ^ is the start of the line while a special character $ indicates the end of the line.
    ^123.*END_STRING$:
  2. The following expression will match any line with start with zero or more spaces, then has test SOME TEXT and ends with zero or more spaces.
    ^ *SOME TEXT *$

Regular Expression Capturing Groups

Capturing groups are a way to treat multiple characters as a single unit.
Regular expression capturing groups are created by placing the characters to be grouped inside a set of parentheses. For example, the regular expression (speed) creates a single group containing the word “speed”. If you are using capturing groups then parser will pickup the first capturing group. In other words, you can use regular expression capturing groups to extract only a portion of the regular expression match.

Here are some examples:

  1. The following expression will match any line which starts with Total: and ends with new line ($) and extract only text between Total and ‘$’. The special character ^ is the start of the line while a special character $ indicates the end of the line. The capturing group is text inside parentheses.
    ^Total:(.*)$:
  2. The following expression will match any line with start with zero or more spaces, then has test SOME TEXT and ends with zero or more spaces.
    ^ *SOME TEXT *$
NOTE: Legacy regular expression do not support capturing groups