Amazon Ad

Tuesday, 28 November 2017

Regex to find all catch blocks in Visual Studio



Find all catch blocks

catch\s*\(\w*\s*(.*\w)*\)\s*\b*\n*\{

Replace with
$&\n\t\t\tlogerror($1);


Here logerror(); is the method which captures the logs. The method errorlog can be called.

No comments:

Post a Comment

Comments are welcome, Please join me on my Linked In account

http://in.linkedin.com/pub/ritesh-tandon/21/644/33b

How to implement Captcha v3 in ASP.NET

 I was facing an issue of dom parsing in my website. I finally resolved it by using Google Captcha V3. Step 1: Get your keys from https:...