Data Type Examples

To guide you along your journey as a GLASS data type developer, we have compiled a few examples that combine and demonstrate the use of different GLASS operators and/or parameters.

All the data type examples include:

  • GLASS code that is complete and ready to be deployed as a custom data type in Enterprise Recon, and
  • Match samples that can be used to validate the custom GLASS data type.

GLASS Examples

  1. Company Email Address

    WORD, NOCASE, RANGE, TIMES, BOUND

  2. 7-digit Club Membership ID

    MAP, NOCASE, RANGE, TIMES, CONTEXT & APPLY, BOUND, REQUIRE, BEFORE

  3. ACME Corporation Customer ID

    MAP, NOCASE, GROUP, THEN, RANGE, TIMES, EXCLUDE, CHECK, OR, WORD, REQUIRE, BOUND, CONTEXT & APPLY

  4. Subject Access Request

    MAP, NOCASE, ALIAS & REFER, GROUP, BOUND, LEFT, RIGHT, THEN, RANGE, TIMES, OR

  5. Blood Type Records

    MAP, NOCASE, COPY, ALIAS & REFER, GROUP, THEN, WORD, TIMES, OR

  6. XYZ National ID

    AFTER, ALIAS & REFER, BEFORE, BOUND, CHECK, LABEL, LEFT, OR, RANGE, RANK & SCORE, RIGHT, THEN, TIMES, WORD