August 2018
Beginner to intermediate
156 pages
2h 32m
English
Branching: In most programming languages, we use if statements and switches. In regular expressions, we branch off using the | metasyntax character or using character sets. An | structure vaguely corresponds to an if-else structure, and a character set vaguely corresponds to a switch statement. An example of character sets is [ab]. Read it like a|b. In other words, choose either a or b.
Read now
Unlock full access