i have strings with Following pattern in python :
2011-03-01 14:10:43 C:\Scan\raisoax.exe detected Trojan.Win32.VBKrypt.agqw
how get substrings: C:\Scan\raisoax.exe and Trojan.Win32.VBKrypt.agqw
between string is tab
i have strings with Following pattern in python :
2011-03-01 14:10:43 C:\Scan\raisoax.exe detected Trojan.Win32.VBKrypt.agqw
how get substrings: C:\Scan\raisoax.exe and Trojan.Win32.VBKrypt.agqw
between string is tab
just use the substring method of a python String.
gets you
A solution using regexes:
This will catch files with spaces in them as well. It will fail if you have files with " detected " in them. (you can add a forward assertion to fix that as well.
You can use this package called "substring". Just type "pip install substring". You can get the substring by just mentioning the start and end characters/indices.
To handle spaces in filenames try
Use the re package. Something like