Remove all whitespace in a string
I want to eliminate all the whitespace from a string, on both ends, and in between words.
I want to eliminate all the whitespace from a string, on both ends, and in between words.
For Unicode (str) patterns:
Matches Unicode whitespace characters (which includes [ tnrfv], and also many other characters, for example the
non-breaking spaces mandated by typography rules in many languages).
If the ASCII flag is used, only [ tnrfv] is matched.