lex program to eliminate html tags

%{
#include<stdio.h>
%}
%%
("<"|"<\\")[a-z|A-Z|0-9]*">"    {printf(" ");}
%%
main()
{
yylex();
return 0;
}
int yywrap()
{
}

Sample output

<html>test file<\html>
test file

Digiprove sealCopyright secured by Digiprove © 2018 Humble Chirammal