tags:

views:

71

answers:

1

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.

A: 

Managed to solve this with the help of http://stackoverflow.com/questions/689354/regex-for-matching-javadoc-fragments Thanks!

Adam