15 Mar
2005
15 Mar
'05
5:53 p.m.
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.