Sets5:42 with Kenneth Love
Sets let us combine explicit characters and escape patterns into pieces that can be repeated multiple times. They also let us specify pieces that should be left out of any matches.
[abc]- this is a set of the characters 'a', 'b', and 'c'. It'll match any of those characters, in any order, but only once each.
[a-zA-Z]- ranges that'll match any/all letters in the English alphabet in lowercase, uppercase, or both upper and lowercases.
[0-9]- range that'll match any number from 0 to 9. You can change the ends to restrict the set.
You need to sign up for Treehouse in order to download course files.Sign up