added support for regexpchecking matches