A regular expression is a symbolic representation of a pattern
of text. Regular expressions are widely used in UNIX text search
facilities such as the grep command.
XXXXXXXXXXXXXXXXXXX UPDATE TO MENTION REGULAR EXPRESSION RULE V6.1SP2 XXXXX
For example, the regular expression
[A-Z0-9._%-]++@[A-Z0-9._%-]+\.[A-Z]{2,4}
matches [email protected] and many other email addresses.
Applications
- Parse infer rules (Rule-Parse-Infer rule type) use
regular expressions to match text patterns in a supplied input
string.
- Transform rules (Rule-Parse-Transform rule type)
convert regular expressions into an internal compiled Java
format.
- The Search/Replace a String wizard can find and match regular
expressions anywhere in all rules of a RuleSet, and substitute another
text string. PROJ-1292
- Your application can include edit validate rules
(Rule-Edit-Validate rule type) that use regular
expression pattern matching to validate user inputs. See Pega
Developer Network article PRKB-24112 How to use regular
expressions to validate user input.
- Regular expressions support the Rule Security Analyzer.
Notes
Support of these facilities is based on the Sun Microsystems
implementation of regular expressions
(java.util.regex.Pattern
).
Definitions —
R