Index: darg.py ================================================================== --- darg.py +++ darg.py @@ -167,23 +167,22 @@ sPattern, sNegPattern = sRegex.split("¬") try: if not sNegPattern: print("# Warning! Empty negpattern:", sRegex) re.compile(sPattern) - re.compile(sNegPattern) + if sNegPattern != "*": + re.compile(sNegPattern) except: print("# Error. Wrong regex:", sRegex) - traceback.print_exc() exit() else: try: if not sRegex: print("# Warning! Empty pattern:", sRegex) re.compile(sRegex) except: print("# Error. Wrong regex:", sRegex) - traceback.print_exc() exit() class Node: """Node of the rule graph"""