• + 1 comment

    doing this gives me a runtime error in a few test cases. why?

    import re

    x=input()

    y=input()

    print(len(re.search(y,x).span()))