_, _, XYZ, Path, filename = string.find("re32:HKEY_LOCAL_MACHINE\\SOFTWARE\\XYZ\\Assistant\\Active ", "(%w+):(.+)\\(.*)")
print(XYZ)
print(Path)
print(filename)
The above code outputs:
re32
HKEY_LOCAL_MACHINE\SOFTWARE\XYZ\Assistant\
Active
I need the output in below form--that is, instead of three groups, I need four:
re32
HKEY_LOCAL_MACHINE
SOFTWARE\XYZ\Assistant\
Active
What has to be done in this case?