Matching Digits & Non-Digit Characters

  • + 3 comments

    All C++ versions of the Regex series problems on HackerRank are broken.

    None of them provide the expected template code to "just fill in the regex". Instead, you're forced to deduce the full C++ program, which goes against the spirit of a regex-only challenge.

    On top of that, in this specific problem, Test Case 4 is invalid according to the problem statement, yet it's treated as a correct match.

    Please fix the templates across the board and review the test cases for accuracy.