Unfortunately, you cannot do this in Gmail because it doesn't support stem searching nor symbol searching.
Gmail separates words on most symbols, meaning that your
0.049 is being split up into the words
049. When you search for
0, it finds a match in the first word.
The reason that
" 0 " wouldn't work is that Gmail ignores whitespace, which means that it is the exact same thing as searching for
If Gmail did support stem searching and symbol searching, you could use something like
-0.* to negate those terms you don't want to find. However, even then this wouldn't be accurate since an email containing the following
0 test 0.049, would incorrectly not be matched due to the negation in the search query.
Here are several solutions I can think of:
- If there is a common word followed by the
0, you can search for both of them (e.g.
- If there is a small amount of numbers that you don't want to match, you could exclude them using a search such as
0 -049 -050 -051, however, keep in mind that this will still have the same problem that an email with the text
0 test 0.049 won't be matched.
- Similar to the above solution, you could negate a search term, so you could use
0 -"0 049" "0 050" "0 051", this still has the same limitation as the above one. The only additional advantage it has is that it will still match an email with
0 test 049, which may reduce the amount of incorrectly unmatched emails.
- If possible, change the email to convert the numbers to a single word with a character such as
_ separating the numbers. So instead of
0.049, your email would contain
0_049, which should be treated as a single word. This way the search
0 will match correctly. Obviously doing something like this can be very easy (e.g. if you are generating the emails yourself) or very difficult (e.g. if you have no control over how the emails are sent).