本帖最后由 lixiaolong 于 2014-8-19 20:49 编辑 #include <Array.au3>
$Str = _
'文件夹比较' & @CRLF & _
'生成:2014/8/7 17:44:33' & @CRLF & _
'' & @CRLF & _
'模式:左侧较新项和左侧孤立项' & @CRLF & _
'左侧基准文件夹:C:\cby\11' & @CRLF & _
'右侧基准文件夹:D:\dby\22' & @CRLF & _
'' & @CRLF & _
'左侧孤立文件 (14)' & @CRLF & _
'-----------------' & @CRLF & _
'12\d3c\1.au3' & @CRLF & _
'12\d3c\新建文本文档.txt' & @CRLF & _
'12\001_想你.bov' & @CRLF & _
'12\002_屋塔房王世子.bov' & @CRLF & _
'12\003_绅士的品格.bov' & @CRLF & _
'12\004_善良的男人.bov' & @CRLF & _
'12\360安全浏览器6.lnk' & @CRLF & _
'12\Anki.lnk' & @CRLF & _
'12\阿里旺旺2013.lnk' & @CRLF & _
'12\暴风影音5.lnk' & @CRLF & _
'12\驱动精灵2012.lnk' & @CRLF & _
'二次曝光.bov' & @CRLF & _
'法网狙击-国.bov' & @CRLF & _
'梦回唐朝.bov' & @CRLF & _
'-----------------' & @CRLF & _
'' & @CRLF & _
'左侧较新文件 (0)' & @CRLF & _
'----------------- '
Local $Test = StringRegExp($Str, '(?m)(?<=^|\\)([^\\\.]+\..*?)$', 3)
_ArrayDisplay($Test, UBound($Test))
|