常用正则

从header中过滤文件名

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

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

原文地址:https://www.cnblogs.com/xqnq2007/p/6718829.html