Wildcards
What are wildcards and how to use them to gain more flexibility in placeholders.
Last updated
What are wildcards and how to use them to gain more flexibility in placeholders.
Last updated
Wildcards, or else you might call it , are a way to define not only a direct text to be matched in Public reply, but also a pattern. This can save you from having to define big list of rules manually, and instead tell Ticket Guardian about a pattern of text that you wish to be found.
Imagine your organisation have placeholders in a single public response template. We only need a pattern to be able to catch those placeholders and have a piece of mind when sending our response. For example:
First thing that you might want to do is to define all those placeholders in Ticket Guardian separarely. But we can see a pattern - there is "ACME_" prefix in front of all of them.
This means you can create only one rule (to rule them all) ACME_*
.
This a Regex pattern, and what is important here, is that your pattern will match all text that has ACME_ as prefix, where *
means find any character.
Match all after text foo
something:
foo*
Match all before text foo
*foo
Match only foo_one
and foo_two
but not foo_three
or anything else:
foo_(one|two)
More examples will follow.
If you are feeling adventures and would like to try writing more advanced / different wildcards (which are regular expressions under the hood), here is a good starting point: .