摘要: $reg = '/^[^\/]+?(\/[^\/]+?){2}[^\/]*/'; $str = 'admin/associator/edit'; preg_match($reg,$str,$match); var_dump($match[0]); 转载 https://blog.liuguofeng 阅读全文
posted @ 2020-12-28 13:42 冷晨 阅读(691) 评论(0) 推荐(0) 编辑