1

我将如何完成评论中的以下内容:

更新:评论中有错误的文件命名约定

// Do any of the file names in the list match the file name for this run?
// Full file name is cs1212-42173-TVCS.csv or cs1212-42173-TVWK.csv
$pattern = '/cs'.date('md').'-\d{5}-TVCS\.csv/i';

现在它只获取 TVCS 文件名,但我需要它来查找 TVCS 和 TVWK。

谢谢

4

1 回答 1

1
$pattern = '/cs' . date('md') . '-\d{5}-TV(CS|WK)\.csv/i';
于 2012-06-03T17:35:37.787 回答