0


I want to print only the lines that begin with the word "Hello"
How can I do it?


i.e

Word----------Print

Hello World (YES)
World Hello (NO)

Thanks!

1 Answers1

0
^"Hello".*$      printf("%s\n", yytext);

^ beggining of line

João Neto
  • 1,732
  • 17
  • 28