visual studio 2013 - how to match specific line with regex? -


i want match specific line regex in visual studio 2013 , delete whole line, first 3 characters in kind of line #, whitespace , number. so, how write regex match these lines? thanks!

to match # followed whitespace , number, use:

/^\#[\ \t]+\d+.*$/gm 

you might need global , multi-line modifier.

using \s should avoided matches \n , \r too.

this match lines start # followed whitespace , number.


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -