Reputation: 1
OK! I was setting up Inbound Interaction Rule in Desk.com for filtering case and there was an option for using regular expressions. We get lots of mails regarding people complaining of withdrawal related issues. So I'd like to automatically set a label for all withdrawal related issues. But the problem is most people dont mention the word "Withdrawal" exactly as it should be. So can someone help me finding a regular expression for all finding variations of the word withdrawal. Now what I have deduced is that most people either write "Withdrawal/widrawal/widrowal/withdrawalsetc" but basically these words starts with W/w and end with "al" or "als"
Upvotes: 0
Views: 2836
Reputation: 1304
[Ww].*?[aA][lL]([sS])?
maybe?
you can also try using \b
at the start and end as a word boundary. Also, I can't help but wonder if this will end up being used evil-ly to ignore all withdrawal related emails where they might be spelling it wrong on purpose to get past your potential
filters. Just a thought.
UPDATE: [Ww][A-Za-z]{7}[aA][lL]([sS])?
will match W(anyfiveletters)AL regardless of case.
you may also consider a range so that you can match between 5 and 7 characters between the w
and the al
. EG. [Ww][A-Za-z]{5,7}[aA][lL]([sS])?
which would match all of your examples since your users cannot seem to spell correctly.
Upvotes: 1