Skip to main content

Understanding the Wild Card match rule

Suggest edit Updated on September 17, 2021

Use the Wild Card match rule to match variable content. The following table provides some examples:

Wild Card match rule examples

To match

Examples

Patterns that include variable content, indicated by an asterisk (*)

  • G* matches Google, Gary, John Grossman, and G. It does not match words or phrases that include a G in the middle or end of a word, for example JG Smith or AMG.
  • *le matches Google, Able, Google Maps, and le. It does not match words or phrases that include an le in the middle or beginning of a word, for example bless or least.
  • *oo* matches any word or phrase that includes a word that contains an oo anywhere within the word, for example Google, spoon, and floo.

Patterns that can contain multiple words with asterisk (*) characters
  • G* M* matches Google Maps, George Miseal, G Miseal, and G M.

Patterns that match any input string that contains the pattern are not surrounded by single quotes

  • G* M* matches I use Google Maps, George Miseal is a good man, I hope George Miseal is alright, and My favorite letters are G M and U.

Patterns that only match if the entire input string matches the pattern are surrounded by single quotes

  • 'G* M*' matches Google Maps and George Miseal, but does not match I use Google Maps.

 

Did you find this content helpful? YesNo

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us