Regex to match javadoc style comments

Posted by Anant on Stack Overflow See other posts from Stack Overflow or by Anant
Published on 2010-04-19T17:46:03Z Indexed on 2010/04/19 18:03 UTC
Read the original article Hit count: 239

Filed under:
|
|

I have files having content like

/**
 * Some Content
 * @param ..
 * @author ..
 *
 */
function a_sample_function ( $args = '' ) {

I need to extract the text

Some Content
@param ..
@author ..

given a function name a_sample_function ( the * can be removed by a gsub later I believe)

I'm writing this in ruby.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about regex