Midterm Study 2 Flashcards
What is the code to match any character?
.
What is the code to match any alphanumeric character?
\w
What is the code to match any non-alphanumeric character?
\W
What is the code to match any whitespace character?
\s
What is the code to match any non-whitespace character?
\S
What is the code to match any digit character?
\d
What is the code to match any non-digit characteR?
\D
What is the code to match a, b, or c?
[abc]
What is the code to match a to g?
[a-g]
What is the code to match 6, 7, a to g?
[67a-g]
What is the code to match any character but a, b, or c?
[^abc]
What is the code to match any capital letter?
[A-Z]
What is the code to escape the next characteR?
\
What is the code to anchor at the beginning?
/^abc/
What is the code to anchor at the end?
/acb$/