I have a huge number of incoming emails from various clients and would like to group them using Gmail filters. However, I was disappointed to learn Gmail, for some reason, doesn't support Regex...
The filtering would only focus on the email subjects for now.
There are two main types of incoming emails: 1. from individuals 2. from companies
The subject line contains the following information: 1. a domain name of one of our sites (so that we know which site the request has come from) 2a. the word "from" followed by either a company name and a domain name OR 2b. the word "from" followed by a person's name and nothing else.
E.g.:
Customer Request at myawesomesite01.com from RandomCompany - randomcompany.com
Customer Request at myawesomesite01.com from Alex
First, I would like to separate company-requests from individuals requests. Since I know that company requests always have a domain name in the subject which typically ends in ".com", my approach was the "from" AROUND ".com"
filter (or: "from" AROUND "com"
because Gmail doesn't deal with dots and other such special characters).
But the problem here is that "from" AROUND "com"
also matches emails where "com" doesn't follow but precedes the word "from".
So it will successfully find
Customer Request at myawesomesite01.com from RandomCompany - randomcompany.com
but will also find
Customer Request at myawesomesite01.com from Alex
I'm not aware of having a symbol for ANY CHAR / ANY STRING in Gmail filters. For instance, something like this would have already solved my problem: from\s[a-zA-Z-\s].com$
I start to wonder if it is even possible using Gmail filters. If not, is there any other tool/approach/scripting solution I could turn to?