Matches given string against multiple regular expressions