Test, validate and match regular expressions
Parses diagnostic test log lines of the form 'TestName EXP=... ACT=... RES=... SN:...', capturing named groups for the test name, expected value (with optional +/- tolerance limits and units), actual measured value with units, result status, and serial number. Built for extracting mini-diagnostic output from hardware or manufacturing test equipment where each line reports one measurement comparison. Ideal for automated log analysis, QA pass/fail reporting, or importing test results into a database.