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
Post a Comment