When learning a new tool, you always have to get started somewhere.
The goal of this chapter is to give you a basic subset of the regular expression syntax to play with. Learning all the syntax is not productive, though, because let’s face it, learning advanced regular expression syntax all at once is too much for anyone.
Formulating an Expression
A regular expression is written inside a starting slash and an ending slash character: /re/.
As you saw in Chapter 1, this expression matches strings containing re.
Some programming languages allow you or require you to use a different notation. For instance, ...