Wildcard text parameters
Pega Robotic Automation supports the use of wildcards with text string parameters for applicable controls. This topic describes how to use the wildcard for text matching in method parameters and for use with match rules.
Use the asterisk "*” character to indicate a wildcard. The following requirements apply to using wildcards:
Wildcards may be placed at the beginning or end of the string.
Wildcard strings can take the form of:
*D* (Contains D)
D* (Word begins with D)
*D (Word ends with D)
Asterisks placed within the middle of a string are treated as literals. For example, the wildcard string: F* Yoder would not match Fred Yoder.
See the following examples using the wildcard with the ComboBox.Find(wildcard) method where the ComboBox contains these items:
Frank Parden
Stephanie Tackett
Dontarious Lockwood
Fred Yoder
Wildcard parameter input |
Item found |
Method result |
*Yo* |
Fred Yoder |
3 |
*n |
Frank Parden |
0 |
S* Tackett |
none |
-1 |
*Tackett |
Stephanie Tackett |
1 |
When using wildcards with match rules, enter any wildcard parameters into the top text field of the Match Rule Editor (not the bottom).
Related information
Privacy | Trademarks | Terms of Use | Feedback
Updated: 01 July 2024
© 2016 - 2024 Pegasystems Inc. Cambridge, MA All rights reserved.