Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Anonymous Monk
on Feb 08, 2013 at 21:16 UTC ( #1017890=note: print w/ replies, xml ) Need Help??


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?


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
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 (Scribe) on Feb 08, 2013 at 23:15 UTC

    I have not seen a consistent truncation pattern, save that it looks like some of the beginning and some of the end of the "standard" response may be truncated"

    And we're talking something of the order of 100 possible responses

    Thanks

    Ted

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-08-21 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls