我需要一个正则表达式模式来过滤平面文件中的值。
以下是平面文件的内容
FILE myapps/abc/dfe/asd123123/sad/myfile_taskmenu.xml ABCD123:234234:AAS234:1
FILE efgh/qwe/advd123123/bad/myfile1.xlf C03858:BC4E4A:1
FILE myapps/efgh/qwe/advd123123/bad/myfile1.xlf C03858:BC4E4A:1
FILE myapps/abc/dfe/asd123123/sad/checkthis.xml WEOUIW:234234:AAS234:1
FILE myapps/yry/hjkyi/qweq/tyu/somefile_taskmenu.xml EWEF123SSD:234WEEDWE234:AASJH234:1
FILE myapps/werwer/qhjk12/wqerwe/ghj23/somefile.xlf SD2345:234JLH:HASDG:1
DIR myapps/yry/hjkyi/qweq/tyu/somefile_taskmenu.xml EWEF123SSD:234WEEDWE234:AASJH234:1
从上面的文件内容我需要过滤文件路径。上述文件内容的有效行号为 1、3、5 和 6,即
myapps/abc/dfe/asd123123/sad/myfile_taskmenu.xml
myapps/efgh/qwe/advd123123/bad/myfile1.xlf
myapps/yry/hjkyi/qweq/tyu/somefile_taskmenu.xml
myapps/werwer/qhjk12/wqerwe/ghj23/somefile.xlf