T
Tman
Need to strip comments from VBScript code.
Tried to use a state machine to tell if I was in quotes, but got very
confused. I know I can use a regex, although I may have to call it
repeatedly to eat quoted strings. Anyone have ideas?
I need to whack everything after the first comment character...
this is not a comment
'this line is fully commented
the comment 'in this line starts after ' the word comment
there "is no 'comment" in this line
but in "this 'line" there 'is a "comment" before the word "is"
'this line is "fully" commented
ad infinitum...
Tried to use a state machine to tell if I was in quotes, but got very
confused. I know I can use a regex, although I may have to call it
repeatedly to eat quoted strings. Anyone have ideas?
I need to whack everything after the first comment character...
this is not a comment
'this line is fully commented
the comment 'in this line starts after ' the word comment
there "is no 'comment" in this line
but in "this 'line" there 'is a "comment" before the word "is"
'this line is "fully" commented
ad infinitum...