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 -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -