$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2005-03-15 12:53:33
Groleo Marius wrote:
> Hi!
>
> I have a question about regexp:
> How can i write a regex , to match this string:
>
>
> +OK user
regex("^\\+OK user$")
Seriously, now, presumably you're trying to parse messages from a POP3
server, and where you wrote "user" you're expecting to see a username?
If that's the case, I think you need to read RFC 1939 again, because it
doesn't specify any responses that include a username. Most positive
responses are "+OK" followed by arbitrary text.
Ben.