"Romeyn, Derek" wrote: So I went ahead and modified it to print the code and the dataline and got Hi Derek,
Take some time here to look at the string, and think about how you know which part is the error code. Is it just because you find a space after "HTTP"? It seems to me that there are some other, m ore determinative, characteristics we make use of: The final HTTP block seems to be a version identifier, which will start with an integer, followed by a backslash. # HTTP\d+\/ There will be something on the other side of the backslash, to identify subversion. Let's not count on knowing what that is, though. # HTTP\d+\/\w+ The string in which HTTP appears will be terminated by a double quote: #. HTTP\d+\/\w+\" Then one or more spaces:: HTTP\d+\/\w+\"\s+ To the best of my knowledge, server errors all use three digits: You could probably hard code this much then: /HTTP\d+\/\w+\"\s+(\d(3))/ Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]