added support for regex comparator