Q:

VS2013 Find replace code and the empty line with it

I've been looking all over and can not find a way to find/replace a search term, and also remove the line with it. Here is an example of what I would like
[TestMethod]
[TestCategory("Unit")]
public void Test()
{
}

To
[TestMethod]
public void Test()
{
}

But instead (trying to replace the term with empty), I am getting this, which does make sense, but not what I desire.
[TestMethod]

public void Test()
{
}

How can I remove the line with it?

A:

You can use regular expressions in VS. The following will match the two lines 
Search: \[TestMethod\]\r?\n\ *\[TestCategory\("Unit"\)\]
Replace: [TestMethod]
Should do what you want. Note you have to escape the brackets in your search string with \

