Regular expressions used to be a nightmare. I have always told people to avoid them or keep them very simple.
Now, with ChatGPT4, maybe not so much. This very challenging set of regexs took minutes: https://chat.openai.com/share/b927eacc-b54c-495a-b506-d9bdcb77f8ca I've not tested these, but they appear to be correct, and you can see it will fix things up if you point out what it is not doing properly. Mike Beckerle Apache Daffodil PMC | daffodil.apache.org OGF DFDL Workgroup Co-Chair | www.ogf.org/ogf/doku.php/standards/dfdl/dfdl Owl Cyber Defense | www.owlcyberdefense.com