We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Incorrect Regex
Incorrect Regex
Sort by
recency
|
304 Discussions
|
Please Login in order to post a comment
python2
import re T = int(input()) for _ in range(T): try: re.compile(raw_input()) print('True') except re.error: print('False')
This is my code for this problem , i used Pypy 3 instead of Python 3. Below is my code