IOPi.py line 156: model = re.match('(.*?)\\s*\\s*(.*)', line)
The IO Pi Plus is a 32 channel MCP23017 GPIO expander for the Raspberry Pi
05/11/2018
Posted by:
KlausDerOptiker
I checked this line and found out that is not working.
Correct would be:
model = re.match('(.*?)\\s*:\\s*(.*)', line)!
The difference is the ':' between '\\s*' and '\\s*'.
I checked the behavior with python 3.7 and through the page 'https://regex101.com/r/iB5dI0/7'
Regards
06/11/2018
Posted by:
KlausDerOptiker
It seems to be that the syntax '(.*?)' of 're' needs a singular delemiter - like: 'do it until...'. An unlimited chain seems not to be allowed.
06/11/2018
Posted by:
andrew
Thank you for spotting the bug in the regex code. I have updated all of the python libraries with the new code so it should be working correctly now.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.