Spaces that are escaped by a backslash, defined as \x20 or similar, included in a character class, or referenced by meta-char-classes like \s are still spaces even in /x mode. Most spaces should be matched with \s anyway, because you can't visually distinguish a space from a tab character.