match instead of indexOf (argument is a regular expression)