I’m trying to find records whose name contains “BSR 2021-”. Which is a no-brainer with
name:BSR 2021-, I get both existing records just fine.
Now, I’m a careful guy and know that naming can be sloppy, so there might be more than one space in the file name, like “BSR 2021-” (that’s two spaces, though you can’t see them). Consequently, I use
name:BSR*2021-. Which leads to no record being found. Whereas the documentation says, “* matches none, one, or multiple characters”. In my mind, two spaces are “multiple characters”, so “*” should match them. It doesn’t.
name:BSR* matches all records containing “BSR”, so it does match the initial space (and everything else after that).
name:BSR[ ]2021-, where
[ ] is a character class containing exactly one character, namely a space, doesn’t match any records. But syntactically,
[ ] is very much the same as a single space character.
Apparently, I’m missing something here. How would I specify a robust search for a name containing “BSR” followed by an arbitrary number of arbitrary characters, followed by “2021-”?
? (matches exactly one character) does not match the space, either. And using quotes around the expression doesn’t help, either.