Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Gmail and I'm receiving lots of emails I want to filter. They all have in common that the subject is like these:

Some words - r1234 - Some more words
Some words - r987665 - Some more words
Some words - r01 - Some more words

So, all of them have something like - r... - in the subject...

Is there any way to filter all those messages?

share|improve this question
Unfortunately, Gmail doesn't support regular expressions, but you could look into some of the other solutions that answer provides. – John Bensin Sep 23 '13 at 11:23
What if you search for "Some words - r" " - Some more words"? – w3dk Sep 23 '13 at 14:10
@w3d I don't understand what you mean... – MikO Sep 24 '13 at 11:29
Ah, do "Some words" and "Some more words" vary each time? In that case my suggestion wouldn't work. I perhaps wrongly assumed that these two phrases were consistent among these emails? (Also, just realised that gmail doesn't seem to like searching for part words, so "wor" wouldn't find "word"!) – w3dk Sep 24 '13 at 15:08

Short answer

Gmail doesn't include search features such wildcards or regular expressions.


Use the Gmail API, Google Apps Script or third party application that include search features like wildcards or regular expressions.


Search in Gmail - Gmail Help

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.