Hello,
I want to identify via a java REGEXP the following snippet:
I think it comes down to having a catch, followed by a throw before a closing brace is found. On or regexp: "[.&&[^}]]* catch throw" which means the word "catch", then any character except ")" 0 or n times and then throw. But it does not work. Shortly, I am trying to handle exception with the Regex. If you have any idea about it then please post back. Thanks in advance.Code:catch (Exception e) { // ... throw e; }
Bookmarks