Skip to content

Precedence and associativity of operators

Matteo Basso edited this page Dec 26, 2016 · 4 revisions

Here is the table of operators precedence from the most to the less relevant:

Operator Associativity
group & end group left
capture & end capture left
. left
in charset: & not in charset: left
" left
from & to left
for {number} times left
optional more times left
required one or more times left
optional one time left
minimum {number} times left
maximum {number} times left
followed by & not followed by left
and, then, , ... left
starts with left
ends with left
or left