Jira Issue Key Regex Online

| Regex Engine | Pattern | Time (ms) | Backtracking steps | |--------------|---------|-----------|--------------------| | Python re | [A-Z]+-[0-9]+ | 12 | None (linear) | | Python re | [A-Z]+-\d+ | 11 | None | | JavaScript | \b[A-Z]+-\d+\b | 8 | None |

\b[A-Z]+-[0-9]+\b The simple regex above fails or behaves ambiguously in several real-world scenarios: jira issue key regex

[A-Z]+-[0-9]+ | Token | Description | |-------|-------------| | [A-Z]+ | One or more uppercase ASCII letters | | - | Literal hyphen | | [0-9]+ | One or more digits | 3.2 Enhanced Version with Word Boundaries To avoid matching substrings (e.g., XYZ-123 inside FOOXYZ-123BAR ), use word boundaries: | Regex Engine | Pattern | Time (ms)