If you aren’t working from a specified input grammar, the task is going to be borderline impossible no matter the tool and you’re going to have a bad time. If you aren’t working with a regular grammar, this is the wrong tool for the job and again you’re going to have a bad time.
A hint; if you find yourself using `.`, you are probably shooting yourself in the foot.
You are 100% correct on the "100 to 10" ratio on test cases.
PLUS, the ways in which broker files can break due to:
- random carriage returns
- different date formats
- time zones
- etc etc
and regexes become both great and terrifying at the same time.
One pattern I did find useful:
regex + if/then
e.g. if (regex is true) then if (regex2 is true) then