Thursday, October 22, 2009

Regex pattern for stripping Javadocs

I recently had a need to remove all Javadoc comments from some code. I use JEdit a lot, and it, like others allows you to use RE's to search through text. The RE for ridding your code of all java comments is 
[/**].*

No comments: