<regular expression> ::= <regular term> ['|' <regular term> ...]
<regular term> ::= <regular factor> ...
<regular factor> ::= <regular primary> [<quantifier>]
<quantifier> ::= ? | * | + | '{' <m> [,[<n>]] '}'
<m>, <n> ::= des nombres positifs entiers, si les deux nombres sont présents, alors <m> <= <n>
<regular primary> ::=
<character> | <character class> | %
| (<regular expression>)
<character> ::= <escaped character> | <non-escaped character>
<escaped character> ::=
<escape-char> <special character> | <escape-char> <escape-char>
<special character> ::= l'un des symboles []()|^-+*%_?{}
<non-escaped character> ::=
tout caractère sauf <special character>
et non équivalent <escape-char> (si c'est le cas)
<character class> ::=
'_' | '[' <member> ... ']' | '[^' <non-member> ... ']'
| '[' <member> ... '^' <non-member> ... ']'
<member>, <non-member> ::= <character> | <range> | <predefined class>
<range> ::= <character>-<character>
<predefined class> ::= '[:' <predefined class name> ':]'
<predefined class name> ::=
ALPHA | UPPER | LOWER | DIGIT | ALNUM | SPACE | WHITESPACE