You can use a regular expression in match text fields.

You can learn more about regular expression here.

For example, in case of the between two lines rule, you can use a regular expression to match the text in the lines.
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 *$