HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services TrkWks HKEY_LOCAL

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
>>> s = """HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TrkWks
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TSDDD
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tssdis
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Udfs
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ULM
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ultra"""
>>> l=map(lambda x: x.split('\\')[-1], s.split('\n'))
>>> l
['TrkWks', 'TSDDD', 'Tssdis', 'Udfs', 'ULM', 'ultra']
>>>