␡
- An Introduction to Regular Expressions
- Sequences
- Moving Beyond the Basics
- Repetition
- Greedy Expressions
- Conditionals
- Using Regular Expressions
Like this article? We recommend
Moving Beyond the Basics
While powerful regular expressions can be built using simple sequences of characters combined with anchors and wildcards, it is possible to achieve much more. The key to achieving the extra expressiveness possible is to combine sequences using the familiar programming constructs of repetition and branching. We will use the Python interactive prompt to explore some of these options.