Meta Interview Question

Write code to match a regular expression to a string.