<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/138302>138302</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Regex alternation operator | is broken in `readability-identifier-naming` options
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ambyld
      </td>
    </tr>
</table>

<pre>
    For example, the regex `A|a` seems to match anything that starts with `A`, such as `ABCDEFG`.

Example on clang-tidy trunk:
https://godbolt.org/z/PfEhP96jh
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckcFu6ywQhZ8Gb1AiPI5xsmCRJvG_rf43GNtjQ4shgnFvc5_-irRSr-4KhOac4XwHc3ZLIDKifRHttcKNbUwG1-Hhp2qI08P0MUn6xPXuScBFsiWZaKFPKbQ6i-6CQiuZidYsOcoVebQSw4OtC4tkiywzY-Isfzm2XyKtilPeymR-Pr1crrf-P6HVXqizUOfb10IZgxw9hmXHbnpITlt4F00ZsMz3XK7QC-iXOA3R8z6mRUD_W0D_Ot_s60m_2WoyzXRqTliRqbuDBlUfla6sGeHYjTXUp06P84gT6RraY0vzOM4aurpyBhS0qlVQa9WA3utung8ANelmADopcVC0ovN77z_WsrtyOW9k6ubYKKg8DuTzkyzATwoBUEgnU1S7YVuyOCjvMucfH3bsn538JWuv8v8nd_RMKSC7GGS8U0KOSYruIl2WQ4rvFKQLhWoinHBw3vFj5yYK7GZHaRdwdWEprcV7McnVlrz5B6hjuw37Ma4C-vKt72N3T_GNRhbQP7NmAf133A8DfwIAAP__w2u8VA">