博客园 首页 私信博主 显示目录 隐藏目录 管理 动画

正则表达式匹配域名

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);
 

 

posted @ 2021-02-23 17:18  八月情  阅读(780)  评论(0)    收藏  举报