Match regular expressions with a nicer API
