add a test regular expression method.