正则表达式匹配域名
preg_match("/^(https:\/\/)?([^\/]+)/i", $video_file, $matches);
preg_replace("/(,)/" ,',' ,input('extension_json')); 中文 逗号 替换为 英文 逗号
^ array:3 [▼ 0 => "https://*.*.*" 1 => "https://" 2 => "*.*.*" ]
匹配字符串中的数字个数
$a = preg_match_all('/[0-9]{1}/',$data["url"],$arr);