K
king
I have a below text like below.
"
Volume in drive C has no label.
Volume Serial Number is 4496-C1CF
Directory of C:\Documents and Settings\Administrator\Desktop\test
08/20/2010 10:01 PM 0 New WinZip File.zip
08/20/2010 10:01 PM 0 New WinZip File (2).zip
08/20/2010 10:01 PM 0 New WinZip File (3).zip
08/20/2010 11:10 PM 11,226 Test_1.txt
08/21/2010 01:56 AM 174 test_2.txt
5 File(s) 11,400 bytes
0 Dir(s) 20,658,462,720 bytes free"
I want to have atwo regular expressions where in I will get no of
files as in 5
and the last file name i.e test_2.txt.
I tried the below thing..but I am getting the whole line as out put. I
just need the number 5 as out put and the name of the last modified
file only.
^(\s+)(\d+)(\s)(Fie*)
Can anybody help me with the regular expression?
"
Volume in drive C has no label.
Volume Serial Number is 4496-C1CF
Directory of C:\Documents and Settings\Administrator\Desktop\test
08/20/2010 10:01 PM 0 New WinZip File.zip
08/20/2010 10:01 PM 0 New WinZip File (2).zip
08/20/2010 10:01 PM 0 New WinZip File (3).zip
08/20/2010 11:10 PM 11,226 Test_1.txt
08/21/2010 01:56 AM 174 test_2.txt
5 File(s) 11,400 bytes
0 Dir(s) 20,658,462,720 bytes free"
I want to have atwo regular expressions where in I will get no of
files as in 5
and the last file name i.e test_2.txt.
I tried the below thing..but I am getting the whole line as out put. I
just need the number 5 as out put and the name of the last modified
file only.
^(\s+)(\d+)(\s)(Fie*)
Can anybody help me with the regular expression?