Hi.
I want to check if the data received from a device over serial does really match the pattern I'm expecting (as I often have error and inconsistent data).
I made up my pattern in javascript/Emascript :
R"(((\d{3}.\d\s){3}\d{3}\s\d{2}.\d\s((\d{2}.\d)|(\d.\d{2}))\s\d{2}.\d\s[01]{8}\r)"
Unfortunately, can't find a regexp tester for Lua.
I think, my pattern should turn out like so in Lua:
R"(%((%d{3}%.%d%s){3}%d{3}%s%d{2}%.%d%s((%d{2}%.%d)|(%d%.%d{2}))%s%d{2}%.%d%s[01]{8}\r)"
Then, I don't know how to use the pattern in Arduino code to check the match between my received data and my pattern.
NickGammon,s Regexp,s documentation is just way to complicated for my understanding !