In Visual Studio 2008, using Regex, how do I comment out all lines containing the text "xyz"?
Find what: ^.*xyz.*
Replace with: //\0
use: Regular expressions.
^(.*xyz.*)$
Replace with
// \0
Should do the trick I think. (Not 100% positive here... testing now)
EDIT: Fixed (it's \0 not \1).
Billy3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With