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}

Or

filename:example.pdf

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

filename:*ampl*

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

Any ideas?

share|improve this question
1  
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
2  
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

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

 
discard

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.