خرید بک لینک

Vote count: 0

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?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 6 فروردين 1395 ساعت: 13:10

صفحه بندی