Precedence in regular expressions