Tuesday, June 10, 2008

Find commented peace of code

In the process of re factoring of your code you may wish to delete commented peaces of code. You can use this regular expression to find potential trash in your code

((//.*\n)(//.*\n)+)(\/\*(.\n)#\*\/)

No comments: