Allow expect-alert to be a regex, provide first capture in filename argument as %a