Python 3.x では、特別な再シーケンス '\s' は [ \t\n\r\f\v] を含む Unicode 空白文字と一致します。
次のコードは、タブと改行をスペースに置き換えることを目的としています。
import re
text = """Hello my friends.
How are you doing?
I'm fine."""
output = re.sub('\s', ' ', text)
print(output)
ただし、タブはまだ出力に存在します。なんで?