Changing search to take an options parameter instead of an endless list of params
Adding isRegex flag to allow escaping of regex values