If you want just a space use just a space! If you want to match everything except some specific white space characters use a negated character class with \S and the other white space characters you want to keep:
s/Hi[^\S\n\r\f]+//gfor example.
In reply to Re^3: \s matches newline in regex?
by GrandFather
in thread \s matches newline in regex?
by Only1KW
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |