Introduction to Regular Expressions
Get a taste of regular expressions (regex), a powerful search pattern language to quickly find the text you're looking for.
StartKey Concepts
Review core concepts you need to learn to master this subject
Optional Quantifiers in Regular Expressions
Character Sets in Regular Expressions
Literals in Regular Expressions
Fixed Quantifiers in Regular Expressions
Alternation in Regular Expressions
Anchors in Regular Expressions
Regular Expressions
Wildcards in Regular expressions
Optional Quantifiers in Regular Expressions
Optional Quantifiers in Regular Expressions
In Regular expressions, optional quantifiers are denoted by a question mark ?
. It indicates that a character can appear either 0 or 1 time. For example, the regular expression humou?r
will match the text humour
as well as the text humor
.
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory