我有一个正在阅读的文件,并在整个文件中搜索某种模式。这是示例行:
DATA "1354236384craan18p.1354236392craan18p.1354668684AR_ESCALATORCase HD0347023 was automatically closed on 5/12/2012 1:51:24 p.m.." "IT Services | File Services | Recovery"
我想要的是创建"IT Services | File Services | Recovery"
只给我该部分的正则表达式。
我有以下正则表达式和代码,但不起作用 - 有什么想法吗?
$whole_wk_file = file_get_contents('Work.arx');
$pattern1 = '/\"[^\"\|]+\|[^\"\|]+\|[^\"\|]+\"/';
preg_match_all($pattern1, $whole_wk_file, $matches_wk, PREG_PATTERN_ORDER);
print_r($matches_wk{0});
这又是在 PHP 中。