I'm using an out-of-date version of micropython compiled for UEFI (https://github.com/tianocore/tianocore. ... k-for-UEFI) v1.12 but cannot get regular expressions to function correctly. I've spent quite a bit of time trying to figure out why; but I'm just not familar enough with the micropython code to figure out why.
This simple example aways results in no match:
Code: Select all
import ure as re
fsre = re.compile('^([Ff][Ss]\d+\:){0,1}([\\|\/]{0,1}.*)$', re.DEBUG)
path = 'FS0:\\'
match = fsre.match(path)
if match:
print("match: ",end='')
print(match.groups())
else:
print('no match: %s\n' % path)
no match: FS0:\
I haven't tried the example yet under the linux port; but honestly, I expect it to work because it's such a simple example.
Anyone have suggestions on how to go about debugging this on UEFI or in general?