Preg匹配句号

DCH*_*CHP 1 php preg-match

我试图在每个包含句号的文件上运行preg_match.

<?php 

$furl = "Maid with the Flaxen Hair.mp3";

if (preg_match("/./i", $furl)) { 

echo "Contains full stop";

}

?>
Run Code Online (Sandbox Code Playgroud)

有人可以请帮忙???

Sha*_*ngh 7

交替,也快,然后preg_match

if (strpos($furl, '.') !== false)
{
 echo "Contains full stop";
}
Run Code Online (Sandbox Code Playgroud)