Match expected values with a regex