@Test
void shouldParseRegularExpressionsIssue17225() {

    Report tasks = new TaskScannerBuilder()
            .setHighTasks("^.*(TODO(?:[0-9]*))(.*)$")
            .setCaseMode(CaseMode.CASE_SENSITIVE)
            .setMatcherMode(MatcherMode.REGEXP_MATCH)
            .build()
            .scanTasks(read("regexp.txt"), ISSUE_BUILDER);
    assertThat(tasks).hasSize(5);
    assertThat(tasks.get(0)).hasSeverity(Severity.WARNING_HIGH)
            .hasType("TODO1")
            .hasLineStart(1)
            .hasMessage("erstes");
    assertThat(tasks.get(1)).hasSeverity(Severity.WARNING_HIGH)
            .hasType("TODO2")
            .hasLineStart(2)
            .hasMessage("zweites");
    assertThat(tasks.get(2)).hasSeverity(Severity.WARNING_HIGH)
            .hasType("TODO3")
            .hasLineStart(3)
            .hasMessage("drittes");
    assertThat(tasks.get(3)).hasSeverity(Severity.WARNING_HIGH)
            .hasType("TODO4")
            .hasLineStart(4)
            .hasMessage("viertes");
    assertThat(tasks.get(4)).hasSeverity(Severity.WARNING_HIGH)
            .hasType("TODO20")
            .hasLineStart(5)
            .hasMessage("zwanzigstes");
}