I am trying to compile the following regex:
regex = re.compile(r'(?P<ls_pci>[\w\d:]+)[\s-\w\d]+\[(?P<device_name>[\w\s:\d-]+)')
On regex101.com it works, but not compiling on my server.
What am I missing?
Thanks
I am trying to compile the following regex:
regex = re.compile(r'(?P<ls_pci>[\w\d:]+)[\s-\w\d]+\[(?P<device_name>[\w\s:\d-]+)')
On regex101.com it works, but not compiling on my server.
What am I missing?
Thanks