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

As the title suggests, I can search like so:

filename:{asf asx avi divx flv m4v mkv mov mp4 mpeg mpg ogm wmv}



But I want to search on filename with regex. Something like:


... to find a file named example.xlsx.

Any ideas?

share|improve this question
Gmail's search does not support RegEx, but this method may work for you. (disclaimer: I have not tried it.) – phantom42 Dec 2 '13 at 20:26
It doesn't look like you can use wildcards, but filename:example should work. In my tests, filename:string worked in finding attachments with the word "string" in the filename. – Al E. Dec 2 '13 at 21:18
@AlEverett but filename:strin, which is what the OP is looking for, doesn’t work. Not in my tests anyway. – Alex Dec 3 '13 at 8:02
@Alex: It works, admittedly, in a narrow set of circumstances. Unfortunately, that's all we've got right now. – Al E. Dec 3 '13 at 14:00
up vote 0 down vote accepted

Gmail doesn't recognize special search characters like [ ], ( ), &, #, *, and currency symbols. You can't use this symbols trying to search email or attachments. On the other hand, Google interprets a string search as part of the contents of an attachment file name.

For example, 'filename:monday' would be like *'filename:monday', if Google interpreted the characters '' as a wildcard.

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.