Posted: 10.04.2015 13:09
I have a problem with this regexp:
I'm trying to tag as a comment any line in which the first non whitespace is an asterisk. But as can be seen in the image, even when the comments in line 3 and 5 are matched (they appear in green), the comment in line 7 is not.
And the only difference between the comment in 5 and in 7 are the spaces in line 6...
Is the regex wrong?
Code: Select all
^\s*\*.*
And the only difference between the comment in 5 and in 7 are the spaces in line 6...
Is the regex wrong?