TikTok interview question

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