in reply to
Calling all REGEX Gurus - nasty problem involving regular expressions combined with hash keys - I need ideas as to how to even approach the problem
I have to determine, as quickly as possible, which key contains the longest substring that is contained in the response text that this service has provided.
Do you mean to say that they do not just truncate, but send random chunks from the middle of the error text? And are they inconsistent in which chunk of the error text they send for each code?