simplified regexpchecking