常用正则

从header中过滤文件名

preg_match('/Content-Disposition: .*filename=([^\/]+)\r\nContent-Transfer-Encoding/', $headers, $matches)

^\/ 匹配除/之外所有字符,包括空格,

posted @ 2017-04-16 15:12  xqnq2007  阅读(167)  评论(0编辑  收藏  举报