i have a question about matching with comment and regular expression
i used "//".*$ ("" used because syntax error)
and action was just print yytext - printf(%s is comment",yytext)
but...
the output was so strange that i cant guess the problem.
input file is
i want to extract comment. ;// or " "//
and output was
the problem was cut off yytext for comment..
for example
// Displays "Hello World!" String
was extracted just "Hello World!" String
where is gone // Displays.. .
what is the problem?
