Search code examples
eclipsesearchjavadoc

Search JavaDoc in Eclipse


Is there a way to search in javadoc comments only (via Eclipse)? I just want to find text within a javadoc comment...


Solution

  • The only way I can think of is to use Eclipse File Search dialog for all .java files and use this regular expression as input:

    "(?s:/\*\*([^\*]|\*[^/])*?###INPUT###.*?\*/)"
    

    and replace the ###INPUT### with what you are searching for.

    See this other question about this regex.