[fix bug 884479] Correct RegEx when Debug=False.