Add check for regex DoS

Checking for user controlled input in regular expressions.