Matching Digits & Non-Digit Characters

Sort by

recency

|

168 Discussions

|

  • + 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.

  • + 0 comments

    I literally don't understand what this question is asking? Anyone else think that the wording/description of this problem is atrociously crap?

  • + 0 comments
    Regex_Pattern = r"\d{2}\D\d{2}\D\d{4}"
    
    import re
    
    print(str(bool(re.search(Regex_Pattern, input()))).lower())
    
  • + 0 comments

    Regex_Pattern = r"^\d\d\D\d\d\D\d\d\d\d"

  • + 0 comments

    82lotteryhack