Character Position from starting of a line
问题 In flex, what's the way to get character position from the starting of a line? I've got a post regarding position from start of a file but i want it from the start of a line. Also it should handle case like this: /** this is a comment */int x,y; output: Here position of "int"=3 Please give me some hints to implement this. 回答1: I presume that the "post regarding position from start of a file" is this one, or something similar. The following is based on that answer. To track the current column