all_possible Asked:2022-08-26 14:59:33 +0000 UTC2022-08-26 14:59:33 +0000 UTC 2022-08-26 14:59:33 +0000 UTC 检查文件名是否与特定格式匹配 772 我需要上传文件的名称为 XX-XX-XXXX 格式,其中每个 X 是一个数字。如何进行这样的检查? php 1 个回答 Voted Best Answer Сергей Гурылёв 2022-08-26T15:10:16Z2022-08-26T15:10:16Z 我认为您的任务最好使用正则表达式 \d{2}-\d{2}-\d{4} https://www.php.net/manual/en/function.preg-match.php
我认为您的任务最好使用正则表达式 \d{2}-\d{2}-\d{4} https://www.php.net/manual/en/function.preg-match.php