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
Character Sets in Regular Expressions
Optional Quantifiers 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
Character Sets in Regular Expressions
Character Sets in Regular Expressions
Regular expression character sets denoted by a pair of brackets []
will match any of the characters included within the brackets. For example, the regular expression con[sc]en[sc]us
will match any of the spellings consensus
, concensus
, consencus
, and concencus
.
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory