Regular Expression
Several areas in STEP allow the use of a regular expression (RegEx) including validation templates, transformations, gateway endpoint configuration, and asset importer. While it is not required to be an expert, having some familiarity with the concept will help users to better understand the configuration options available.
In simple terms, a regular expression is shorthand for describing patterns that can be matched by text.
This can be extremely useful when describing, for example, how a file name should be used to match an existing asset or product object, which part of a folder structure should be processed or ignored, and many other scenarios related to matching text patterns.
The following additional information is available:
- The Regular Expression Syntax topic here includes information on the syntax required and used in STEP regular expressions.
- The Regular Expression Examples topic here includes practical examples using regular expressions in STEP.
Versions
Within STEP, different versions of regular expression are used, as follows:
STEP Area |
RegEx Version |
Detailed Information |
---|---|---|
Asset Importer Calculated Attributes Search Transformations Validation Rules |
Java |
https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html |
Business Rules |
JavaScript |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions |