adding support of regex