Boost logo

Boost Users :

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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net