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

twig - Using Twigbridge in a Laravel 5.1 Package -

java - Openshift port-forwarding -

php - Symfony 2: "No route found for "GET /" - error on fresh installation -