Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Regex for replacing all code inside Catch block ?

$
0
0

Hi,

     How to replace all my code inside Catch block.

Ex) From

catch(Exceptionex)

{

  //Old Code

}

To

catch(Exceptionex) 

{

  //New Code

}

It's a tedious task to manually replace all my catch blocks with new code. So i'm looking for a Regex to find and replace all my code inside catch block in my entire solution. Just replacing all lines inside catch block and replacing with new one. Can some one help me out ?

Thanks in Advance.



Viewing all articles
Browse latest Browse all 21115

Trending Articles