Operators

Operators ordered by precedence.

Operator Name Precedence Comment
  GROUPING
OPERATORS
( ) Parentheses 4 Suggested for single-line groups.
{ } Brackets 4 Suggested for multi-line groups.
  UNARY (PREFIX)
OPERATORS
not Complement 3 Applies only to some operands.
NUMBER : Positional capturing
group
3
NAME : Named capturing
group
3
lookahead Lookahead assertion 3
lookbehind lookbehind assertion 3
optional Optional quantifier 3 0 to 1 times
repeat Unlimited quantifier 3 0 to ∞ times
at‑least‑N Lower limit quantifier 3 N to ∞ times
at‑most‑N Upper limit quantifier 3 0 to N times
N‑times Exact quantifier 3 exactly N times
N‑to‑M‑times Range quantifier 3 N to M times
  BINARY
OPERATORS
or Disjunction 2
, Comma 1 Suggested for separating expressions in a single line.
; Semicolon 1 Suggested for separating expressions between lines (at the end of line).

TODO: write more