Windows search behaves strangely with #### B#

Solution 1:

I found a couple of fixes, but no explanation.

  1. Type "1234 B2", and I do mean type the quotes.  Or file:1234 B2 (or file:"1234 B2").
  2. Without quotes, 1234 B2 let’s say 1234 A2, since it works normally.  When you type 1234 A2 (without quotes), Windows Explorer seems to treat it as

    filename contains “1234”    AND    filename contains “A2”

    and so it finds, not only 1234 A2.txt, but such files as 1234 foo A2 and A2 1234.  A search for A2 1234 finds the same results.

    Now, 1234 B2 doesn’t find anything that I could throw at it (and I have no idea why).  But B2 1234 finds 1234 B2, 1234 foo B2 and B2 1234.  So that will get the result you want (along with the others, if they happen to exist).  Also, peculiarly, 1234 AND B2 finds the same three patterns.