RegEx Quick Flashcards
Name the 11 metacharacters
^ $ | \ () {} [] ? . * +
What do each of the 11 metacharacters do
- hat (signifies beginning)
- signifies the end
- quantifier
- explicitly states single characters
- states the order of things
- represents all things
- makes characters literal
- OR
- zero or one
- zero or more
- one or many of previous expression
Difference between [aeiou] and [^aeiou]
One expression extracts any single element in a document that matches any single one of our given characters.
The other expression finds characters that do NOT match a single character in our pattern.
What is the acronym that represents 12 different character escapes?
BratS fenD pwv
(people.with.cute.v)
\b \r \a \t sS
\f \e \n dD
pP wW cC v
What are the three escaping characters that use numbers?
\x20
\040
\u0020
What do the 3 escaping characters with numbers mean?
-
What are hyphens and what is a range.
(-) link together a hexadecimal range of options.
These two things are the same:
(abc) and (a-c). The range of characters is a through c.