//.*?(?=\r?$)
##.*?(?=\r?$)
Explanation:
//
or ##
will be the Starting Position
.*?
Will be any character
(?=\r?$)
will search to the end of the line (as it is required in line comment)
Written with StackEdit.
//.*?(?=\r?$)
##.*?(?=\r?$)
Explanation:
//
or ##
will be the Starting Position
.*?
Will be any character
(?=\r?$)
will search to the end of the line (as it is required in line comment)
Written with StackEdit.