Regular Expressions 2021 freeCodeCamp, Match Whitespace

preview_player
Показать описание
In this regex lesson, we take a look at a new shorthand character class that allows us to search for any whitespace. We are able to do this using \s. Using \s is the same as the character class [\r\t\f\n\v] We are able to shorthand this character class simply using \s. Learning different character classes and understanding their utility allows us to combine multiple character classes and build useful regular expressions.

Рекомендации по теме