40

Predefined Character Sets

Before, you could describe the set of all digits using [0-9]. Because some sets are used regularly, there are short notations for them.

Additionally, if you want to invert a set like \s, you can use the capital letter e.g. \S.

The following text is from "The Twelve Days of Christmas" by Harry Belafonte [source]. Here, animals are counted. Find all lines in which a number is followed by space followed by a word.

Next Step