Parse text using a regular expression

In discovery patterns, you can parse text into variables using the Regular expression query language as the parsing strategy. You must be knowledgeable with the query language to use this strategy.

Procedure

  1. On the Identification or Connectivity Sections form for parse operations, select the Regular expression parsing strategy.
  2. Fill in the fields, as appropriate.
    Field Description
    Regular expression Specify the regular expression. You cannot select text in the text box using this parsing strategy.

    You can only specify a single expression, but depending on its wording, multiple values can be extracted (enclosed in parentheses).

    Matching of variables to parentheses occurs according to the order of the parentheses sets. (The first variable is matched to the first set of parentheses, etc.).

    Set variables as
    • Table: Select this option if the target table contains multiple columns.
    • List: Select this option for a single string (scalar).
  3. To end the discovery process if no results are found, select the If not found check box.

What to do next

Finalize a pattern