http://www.perlmonks.org?node_id=1017903


in reply to Re: Calling all REGEX Gurus - nasty problem involving regular expressions combined with hash keys - I need ideas as to how to even approach the problem
in thread Calling all REGEX Gurus - nasty problem involving regular expressions combined with hash keys - I need ideas as to how to even approach the problem

Thanks

There are around 100 possible standard response texts.

I have not seen a consistent pattern in the abbreviations, although I hope against hope that they'd at least abbreviate any given response text the same way consistently.

Part of the challenge is to deliberately trigger each response code, so that we can see how each is abbreviated at least once. It is easy to generate an error related to a bad date, some of the other errors are quite hard to deliberately trigger, especially when the server in question has to be treated as a black box (we know what the response codes are, but not their validation rules that apply them - and their documentation leaves everything to be desired).

That said, I will make a test script based on the code you show, just in case the assumptions that code makes are satisfied by the data they send.

Thanks

Ted

  • Comment on Re^2: Calling all REGEX Gurus - nasty problem involving regular expressions combined with hash keys - I need ideas as to how to even approach the problem