i am trying to parse a simple HTML document generated on an arduino with a serial shield. the HTML is super simple: it contains the state of three buttons, each with the prefix "B1:","B2:" or "B3:", followed by either '1' or '0' depending on the button state.
so when the arduino IP is typed in on a standard browser this is what loads:
B1:1 B2:1 B3:1
i know i can parse with 'regexp', but i really dont get the perl syntax at all :( so i was hoping someone could help me parse this. thanks!