Learn Before
Concept

Operator precedence hierarchy

The order of regex operator precedence: Parenthesis > Counters > Sequences and anchors > Disjunction.

For example, the Kleene* operator applies by default only to a single character, not to a whole sequence. The whole pattern can be repeated zero or more times if we can add * after the search pattern in ().

0

1

Updated 2021-09-12

Tags

Regular Expression

Data Science