So i have been trying to restrict users to use specific keywords in their messages aka blacklist keywords
what i tried is fuzzy search & “contains” but its not matching words in string
for an example - i want to restrict “gmail” keyword in john@gmail.com
so whenever a user try to enter in gmail in their message it should show them warning

I am not able to find any solution to match exact keywords in string even if its surrounded by other characters in this case @ or .

anyone came across to such issue ?

Ideally, contains should take care of this. Can you share your setup here?

Regex expressions.

Try a regular expression that looks similar to this

/\b(apple|banana|cherry)\b/g

This topic was automatically closed after 70 days. New replies are no longer allowed.