%{
#include <stdio.h>
%}
%%
^
[6-9][0-9]{9}$
{ printf
("Valid mobile
number\n"
); }.+ { printf
("Invalid mobile
number\n"
); } %%
int main() {
printf
("Enter mobile
number: "
); yylex();
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgolJQpeWzYtOV1bMC05XXs5fSQgICAgeyBwcmludGYoIlZhbGlkIG1vYmlsZSBudW1iZXJcbiIpOyB9Ci4rICAgICAgICAgICAgICAgICB7IHByaW50ZigiSW52YWxpZCBtb2JpbGUgbnVtYmVyXG4iKTsgfQolJQoKaW50IG1haW4oKSB7CiAgICBwcmludGYoIkVudGVyIG1vYmlsZSBudW1iZXI6ICIpOwogICAgeXlsZXgoKTsKICAgIHJldHVybiAwOwp9CgppbnQgeXl3cmFwKCkgewogICAgcmV0dXJuIDE7Cn0=