My editor EditpadPro
allows me to create syntax colouring schemes.
The scheme I'm writing includes comments which span "--" to end of a line.
I'd like a regex which starts from the "--" but which stops at the last non-blank character. I cannot use "replace" as I'm just entering the regex, not using it myself.
So, if the text in my line of code is:
X=1 -- This is a comment with trailing blanks
Then the regex would return:
-- This is a comment with trailing blanks
The reason for this is that I can highlight the trailing blank space as waste space.