Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

1 Answer 1

Just use filename:ampl to search all attachments with the word "ampl" in the name.

share|improve this answer
Have you tested it? Because in my tests, it doesn’t work. –  Alex Dec 3 '13 at 8:16
Tested. Works for me. –  user2285323 Dec 3 '13 at 8:18
@Alex you are right, there should be a separate word ampl in the filename :( –  user2285323 Dec 3 '13 at 10:33
Since your suggestion obviously doesn't work, you should delete it. –  Al E. Dec 19 '13 at 1:19

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.