vinbad.blogg.se

Notepad++ regular expression except file type
Notepad++ regular expression except file type








\* finds the start of the comment (note that the literal * needs to be escaped because * has a special meaning in regular expressions). When first attempting this problem, most people consider the regular expression: I found that it was difficult to write a regular expression that would find C style comments (the comments that start with /* and end with */) because my text editor does not implement the "non-greedy matching" feature of regular expressions.

notepad++ regular expression except file type

Upon occasion I want to examine each of the comments in my source code and either edit them or remove them. This feature is allows one to find text based on complex patterns rather than based just on literals. When I'm programming, I like to use an editor with regular expression search and replace.

notepad++ regular expression except file type

Many text editors have advanced find (and replace) features.










Notepad++ regular expression except file type