TikTok Interview Question

Use Regex get a correct variable, return maximum people that can be on live show given schedule.