Sort by

recency

|

319 Discussions

|

  • + 0 comments

    how to solve this code

  • + 0 comments

    Accepted solution for python 2

    import re
    for _ in range(int(raw_input())):
        try:
            re.compile(raw_input().strip())
            print(True)
        except re.error:
            print(False)
    
  • + 2 comments

    With Python3.11, both sample inputs return True.

  • + 0 comments

    Here is HackerRank incorrect Regext in python solution - https://programmingoneonone.com/hackerrank-incorrect-regex-solution-in-python.html

  • + 0 comments

    We need to change from python2 to python3