How do I escape wildcards in Restricted Words

  1. Home
  2. Knowledge Base
  3. GMS
  4. How do I escape wildcards in Restricted Words

Question

I want to match my restricted words against a phrase that contains a ? but when I use ? in the restricted words file it is treated as a wildcard character. Is there some way I can escape these characters.

Answer

Yes, the wildcard characters * and ? can be escaped by putting them in square brackets for example [*] and [?].

Example 1:

Matching Rule: Why[?]
Matches: why?
Non-Matches: "why.", "whys"

Example 2:

Matching Rule: Why?
Matches: "why ", "why?", "whys"
Non-Matches: "why"

See Also:

Keywords:restricted words rwords wildcards

Was this article helpful?

Related Articles