Grouping
- Last UpdatedMar 28, 2024
- 1 minute read
Parentheses are used to define the scope and precedence of the operators. For example:
analog|analogue
and…
analo(g|(gue))
These are equivalent, and would return positive matches on both analog and analogue.
Parentheses have other uses in Regular Expression construction which are beyond the scope of this guide.