Once you have constructed a regular expression, it is evaluated much like an arithmetic expression, that is, it is evaluated from left to right and follows an order of precedence.

Expand imageFrom Highest to Lowest, the Order of Precedence of the Regular Expression Operators: