It was aparently the flags I was passing. I didn't have
REG_ICASE or REG_NEWLINE turned on. Works now :)
My particular pattern doesn't work, but I made one that does. Thanks for the help.
Thats a point I hadn't thought of that the library isn't supporting all the codes.. mm
Does anyone have a known expression that works for checking email addresses in the standard GNU regex.h?
Thanks for the reply. But first I tried just doubling the escapes and it didn't work then either. I know the pattern is good. I've used it in Javascript with much success.
I am trying to validate an email address using regcomp and regexec. However, aparently I am doing it incorrectly.
When I use a simple pattern to match things work well. However, as soon as I start getting into the special escaped regex code it starts to fail. I'm assuming that the pattern is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.