Find Whitespace with Regular Expressions

We can also use regular expression selectors like \s to find whitespace in a string.

The whitespace characters are " " (space), \r (the carriage return), \n (newline), \t (tab), and \f (the form feed).

The whitespace regular expression looks like this:



Use \s to select all the whitespace characters in the sentence string.

Get a hint