05. Literal Characters
- However, before we go on, this is a good time to point out that the
regular expression above doesn't match the words "This is a regular expression".
Regular expressions have no concept of the English language, so the
idea that it's matching words is not correct.
- Rather, the regex matches a "T", then matches an "h", then an "i", and so on.
- It's a good idea to start thinking about regexes in this way, because it will
force us to look very carefully at the regex, and it will help later on when
we talk about the way that regex engines work.
|