Add the ability to expect a regular expression pattern