I´m trying to find the string 0
in Gmail.
When I try searching for 0
, Gmail shows me emails with strings like 0.049
but I am not interested in them. I am interested in emails that contein a zero isolated or in other words… I am trying to find the string " 0 "
. How can I do this?
Best Answer
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 words0
and049
. When you search for0
, 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 for0
.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 following0 test 0.049
, would incorrectly not be matched due to the negation in the search query.Here are several solutions I can think of:
0
, you can search for both of them (e.g."0 test"
).0 -049 -050 -051
, however, keep in mind that this will still have the same problem that an email with the text0 test 0.049
won't be matched.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 with0 test 049
, which may reduce the amount of incorrectly unmatched emails._
separating the numbers. So instead of0.049
, your email would contain0_049
, which should be treated as a single word. This way the search0
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).