SIM - Regex Pattern

SIM - Regex Pattern

Module: SIM
Path: Campaign > Advertising > Maintain Scripts > Forms tab
Topic: Edit Element 
Version(s):  5.1 & up
Editions: Commerce and Call Center


Regex Pattern

A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. - per Regular expression - Wikipedia


Field Validation Options

Clicking on an "input" field will display Field Validation Options.

Selected validations must be saved on the form and the script must be saved before Preview will trigger validations selected.

  1. Required
    1. unchecked - any value to include null (empty) will be accepted to move away from form during order entry
    2. checked - null value in field will trigger error during order entry and agent will not be able to move away from the form (back, home, end, and next button will be disabled)
      1. trying to navigate away from form will display an error popup
      2. Hovering over the field highlighted in yellow will display what validation the system is expecting to be resolved

  2. Validate Length
    1. unchecked - any value to include null (empty) will be accepted to move away from form during order entry
    2. checked
      1. Min - the least number of characters that are expected in this field
      2. Max - the largest number of characters that are expected in this field
      3. trying to navigate away from form will display an error popup
      4. Hovering over the field highlighted in yellow will display what validation the system is expecting to be resolved

  3. Number Range
    1. unchecked - any value to include null (empty) will be accepted to move away from form during order entry
    2. checked
      1. Min - the lowest numerical value that is expected in this field
      2. Max - the largest numerical value that is expected in this field
      3. trying to navigate away from form will display an error popup

      4. Hovering over the field highlighted in yellow will display what validation the system is expecting to be resolved

  4. Regex Pattern
    1. unchecked - any value to include null (empty) will be accepted to move away from form during order entry
    2. checked
      1. Regex Pattern
        1. examples
          1. ^(?=.*[A-Z]) → Requires at least one uppercase letter anywhere in the string.
          2. (?=.*\d) → Requires at least one digit anywhere in the string.
          3. (?=.*[!@#$%^&*]) → Requires at least one special character (!@#$%^&*).
          4. [A-Za-z\d!@#$%^&*]{8,}$ → Ensures minimum length of 8 characters and restricts characters to letters, numbers, and special characters.
      2. Regex Help Text
        1. any text to display when hovering over field
      3. trying to navigate away from form will display an error popup

      4. Hovering over the field highlighted in yellow will display what validation the system is expecting to be resolved

    You can find many free tools online to help with regex pattern matching as well as online generators.
    * To save the changes click the Save button .
    * To cancel any of the current changes you have made click the Cancel button .


    Conditions That Use Regex

    1. Event Argument Matches > Regex
    2. Field Matches > Regex
      1. ^(?=.*[A-Z]) → Requires at least one uppercase letter anywhere in the string.
      2. (?=.*\d) → Requires at least one digit anywhere in the string.
      3. (?=.*[!@#$%^&*]) → Requires at least one special character (!@#$%^&*).
      4. [A-Za-z\d!@#$%^&*]{8,}$ → Ensures minimum length of 8 characters and restricts characters to letters, numbers, and special characters.


    Conditions That Use Pattern

    Pattern uses * as wild card to allow for a general pattern to be set. Example:
    1. Credit Card Number > Pattern
      1. Match Y/N = checked
      2. Pattern = 4*
        1. this will require the credit card number to start with 4 and followed by anything
    2. Email Address > Pattern
      1. Match Y/N = checked
      2. Pattern = *@*.com
        1. requires anything @ anything .com
    3. Phone Number > Pattern
      1. Match Y/N = UNchecked
      2. Pattern = 1*
        1. requires that phone number does NOT start with 1


    Copyright 2025
    Revised 6.13.2025
      • Related Articles

      • SIM - Adding/Editing Columns

        Editing the Header/Footer By default the header and footer will have a height of zero pixels which will make them invisible when rendered. To edit the height of the header or footer you can double click the header/footer node on the form tree or ...
      • SIM - Data Linked

        Module: SIM Path: Campaign > Advertising > Maintain Scripts > Forms tab Topic: Edit Element Version(s): 5.1 & up Editions: Commerce and Call Center Linked Field The data-linked attribute is used to store custom data private to the (sim form). The ...
      • SIM - Action Button Types

        Module: SIM Path: Campaign > Advertising > Maintain Scripts > Forms tab Topic: Edit Element Version(s): 5.1 & up Editions: Commerce and Call Center Action Button Types Action buttons allow you to configure specific events/actions to trigger based off ...
      • SIM - Adding/Editing Custom Fields

        Module : SIM Elements Path: Campaigns > Advertising > SIM Custom Fields Topic : Adding/Editing Custom Fields Version(s) : Version 5.1 and up Editions : All Editions You can create form specific custom fields, to capture and display additional ...
      • SIM - Adding/Editing/Moving Elements

        Module : SIM Elements Path: Campaigns > Advertising > SIM Elements Topic : Adding/Editing/Moving Elements Version(s) : Version 5.1 and up Editions : All Editions To add an element you can click on the Add Element button or right click the ‘Form’ ...