Program to identify valid indian phone number.
%{
#include<stdio.h>
%}
%%
([789][0-9]+{9}) {printf("it is valid phone number");}
%%
main()
{
yylex();
}
#include<stdio.h>
%}
%%
([789][0-9]+{9}) {printf("it is valid phone number");}
%%
main()
{
yylex();
}
Comments
Post a Comment