findregex.php
来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHP 代码 · 共 36 行
PHP
36 行
<?php /** @file findregex.php * @brief Program Find a specific file by name. * @ingroup Examples * @author Marcus Boerger, Adam Trachtenberg * @date 2004 * * Usage: php findregex.php \<path\> \<name\> * * \<path\> Path to search in. * \<name\> Filename to look for. */if ($argc < 3) { echo <<<EOFUsage: php findregex.php <file> <name>Find a specific file by name.<path> Path to search in.<name> Regex for filenames to look for.EOF; exit(1);}if (!class_exists("RegexFindFile", false)) require_once("regexfindfile.inc");foreach(new RegexFindFile($argv[1], $argv[2]) as $file){ echo $file->getPathname()."\n";}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?