added uncaught counter, escaped regex