Gavin Kistner wrote:
> Just because you consume them doesn't mean you have to use them. Use
> parentheses to saved parts of text extracted by your regular
> expression.

I'm trying to code one method(with one regexp input) to extract any part 
of a given string.

but now it seems a fix method is very hard to accomplish this job.

-- 
Posted via http://www.ruby-forum.com/.