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


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

Just spend a few minutes constructing requests that cause the remote server to respond with each of their response texts; then store this in your text-to-response-code hash. Job done.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on 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

Replies are listed 'Best First'.
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
by ted.byers (Monk) on Feb 08, 2013 at 23:28 UTC

    Thanks for this

    Alas, it is a bit harder than that. There are about 100 standard responses, and while some are trivially easy to trigger, some are notoriously hard to deliberately trigger, in no small part because the validation rules they use are not documented (at least inthe documentatin they provide to us).

    Thanks

    Ted

      Then add the common ones and fix up the rare ones when and if they ever occur.

      (And look for an alternative supplier of this service that doesn't screw you around.)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.