[glug-t] Re: gdb and regexp question ! (RegExp)

Rams writes:
>    grep -e -v "^[[:space:]]*#" script-file

Thanks for pointing out the bug.

> > > g.Email address where allowed letters are A-Z, a-z and 0-9 (e.g.
> > > some1@xxxxxxxxxxx)
> > 
> > [[:alnum:]]*@[[:alnum:].]*
> A small modification in the above RegExp -> [[:alnum:]]*@[[:alnum:]]\.*

I guess the regex you have given has a bug, it would match email ids ending in 
one or more periods. The regex should be [[:alnum:]]*@[[:alnum:]][[:alnum:].]*
But this is not the correct regex for an email address since, email user names 
can contain underscores, hyphens, etc. We will have to check out the RFCs, for 
the correct format.

Vijay

-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: