Program to identify valid emai id.
%{
#include<stdio.h>
%}
%%
([a-zA-Z0-9['.']+['@'][a-z]+['.'][a-z]+) {printf("it is valid email id");}
%%
main()
{
yylex();
}
#include<stdio.h>
%}
%%
([a-zA-Z0-9['.']+['@'][a-z]+['.'][a-z]+) {printf("it is valid email id");}
%%
main()
{
yylex();
}
Comments
Post a Comment