Re:ZA̡͊͠͝LGΌ causes "Invalid MD5 checksum on messages"
by Dylan16807 on Saturday May 08, 2021 @04:49PM
(#27090555)
It uses a code generator but that seems to be concatenating some constants together to allow for prettier organization and reuse between encoding and decoding. The core of what it has to match against to handle escapes isn't very complicated.
A "straightforward regex" is so large/complicated the solution actually uses a JS code generator.
Yes, decoding is only part of XML parsing, and you technically can use a regex for the coding.
But 9/10 times sometimes rolls a regex to help parse XML they fail miserably. Including AWS engineers.