Google mail search wildcard
Google Mail (Gmail) supports wildcard searching using the *
character. Here are some examples:
- Search for messages containing a specific word:
from:*example.com
- finds messages from any email address ending with@example.com
. - Search for messages containing a specific phrase:
subject:*"hello world"
- finds messages with a subject line containing the exact phrase "hello world". - Search for messages containing a specific word or phrase:
body:*hello OR body:*world
- finds messages containing either the word "hello" or the word "world" in the body. - Search for messages from a specific domain:
from:*@gmail.com
- finds messages from any email address ending with@gmail.com
. - Search for messages with a specific attachment:
has:attachment *pdf
- finds messages with a PDF attachment. - Search for messages with a specific label:
label:*important
- finds messages labeled as "important". - Search for messages with a specific sender:
from:*[email protected]
- finds messages from a specific sender, John Doe, atexample.com
. - Search for messages with a specific recipient:
to:*[email protected]
- finds messages sent to a specific recipient, Jane Doe, atexample.com
. - Search for messages with a specific date range:
after:2022/01/01 before:2022/01/31
- finds messages sent between January 1st, 2022, and January 31st, 2022. - Search for messages with a specific size:
size:10M
- finds messages larger than 10 megabytes.
Note:
- The
*
character is a wildcard that matches any characters. - You can combine multiple search terms using the
OR
operator (e.g.,from:*example.com OR from:*example.net
). - You can use parentheses to group search terms and specify the order of operations (e.g.,
(from:*example.com OR from:*example.net) AND subject:*hello
). - You can use the
NOT
operator to exclude search terms (e.g.,from:*example.com NOT from:*example.net
).
Remember to enclose your search query in quotes if you're searching for a specific phrase.