$pattern="/^.*\/(.+?)$/";
$matchCount=preg_match($pattern,$filePath,$matches);
$fileName=$matches[1];
<u></u>preg_match
方法只進(jìn)行一次匹配,返回匹配的數(shù)量(0或1)两曼。
$pattern="/^.*\/(.+?)$/";
$matchCount=preg_match($pattern,$filePath,$matches);
$fileName=$matches[1];
<u></u>preg_match
方法只進(jìn)行一次匹配,返回匹配的數(shù)量(0或1)两曼。