%{
#include <stdio.h>
%}

%%
Name[ ]+([A-Za-z]+[ ]?)*     { printf("Name: %s\n", yytext + 5); }
Age[ ]+[0-9]+                { printf("Age: %s\n", yytext + 4); }
Email[ ]+[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}   { printf("Email: %s\n", yytext + 6); }
.|\n                         { /* Ignore other characters */ }
%%

int main(int argc, char **argv) {
    yylex();
    return 0;
}
