I think that, since the common regex wisdom involves replacing a literal space in an
as a replacement for a literal space—but, if you actually want a literal space (rather than just a single whitespace character) in such a regex, but outside a character class, then what you want is '
' (i.e., an escaped space).