You are viewing a single comment's thread. Return to all comments →
import re pattern = "^((_|\.)[0-9]+[a-zA-Z]*_?)$" for _ in range(int(input())) : string = input() if re.search(pattern ,string) : print("VALID") else: print("INVALID")
Seems like cookies are disabled on this browser, please enable them to open this website
Alien Username
You are viewing a single comment's thread. Return to all comments →
here is my reg expression