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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -