I am reviewing some code.
I have notice some empty catch blocks. Not a good idea since somethings do not work and you cannot see why.
Is there an easy way to
Expanding on @bobah75 's answer, it wouldn't recognize this line
catch (System.Data.Entity.Core.EntityException ex) { }
So to fix that, here is the solution
catch\s*(\(?.+Exception(\s*\w+)?\))?\s*\{\s*([:b\n]|(\/\*[^*]*\*\/)|(//[^\n]*))*\}
you can test it out here