Skip to main content Skip to complementary content
Close announcements banner

Editing a regular expression or a SQL pattern

You can open the editor of any regular expression or SQL pattern to check its settings and/or edit its definition in order to adapt it to a specific database type, or adapt it to a specific use.

Before you begin

You have selected the Profiling perspective.

Procedure

  1. In the DQ Repository tree view, expand Libraries > Patterns.
  2. Browse through the regular expression or SQL pattern lists to reach the expression or pattern you want to open/edit.
  3. Right-click its name and select Open from the contextual menu.

    The pattern editor opens displaying the regular expression or SQL pattern settings.

    Overview of the Pattern Metadata and Pattern Definition sections.
  4. Modify the pattern metadata, if required, and then click Pattern Definition to display the relevant view.

    In this view, you can: edit pattern definition, change the selected database and add other patterns specific to available databases through the [+] button.

    Information noteNote:

    For the PostgreSQL database, regular expressions are not compatible among the database different versions.

    If you want to use the regular expression with PostgreSQL version 9.1 or greater, you must either:
    • in the PostgreSQL database configuration, set the standard_conforming_strings parameter to off and write double backslashes in the definition, or
    • in the Regular expression field in the wizard, use a single backslash in the expression definition.

    For further information about PostgreSQL regular expressions, select Window > Show View, expand Help and then select Bookmarks.

  5. If the regular expression or SQL pattern is simple enough to be used in all databases, select Default in the list.
  6. Click the save icon on top of the editor to save your changes.
    Information noteNote: When you edit a regular expression or a SQL pattern, make sure that your modifications are suitable for all the analyses that may be using this regular expression or SQL pattern.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!