Problem with re module
I am creating a compiler and I also knew how to use re but when i run code and input: public static var = "hello" "world" Code: import re STRING='(\'[^\']*\')|("(.[^"])*")' ID='[a-zA-Z_][a-z0-9A-Z_]*' INT='\d+' FLOAT='\\d+\\.\\d+' QUALIFIER='(static|global)?' SECURITY='(public|private|protected)?' OP='(\\+|-|*|/|%|^)' EXP='((('+STRING+'|'+ID+')((\\s)?('+STRING+'|'+ID+'))*|((('+INT+'|'+FLOAT+'|'+ID+')('+OP+'('+INT+'|'+ID+'|'+FLOAT+'))*)' ASSIGN='('+OP+')?=' STMT='\\s'+SECURITY+'\\s*'+QUALIFIER+'\\s*'+ASSIGN+'\\s*'+EXP+'\\s*' while True: print('\n') print(re.match(STMT,input('Enter : '))) Errror on re module occured (It is py error not a regex error) Please help me , What to do to solve this problem You can get the error why? Link to code => https://code.sololearn.com/cVmc3pI5qIOk/?ref=app