added support for regex