$arr = []; $preg = '/(?<={).*?(?=})+/'; $str = 我是帅哥{yes},我是大帅哥{big}{boy}; preg_match_all($preg,$str,$arr);