Competing regular expressions