From: Damjan Rems Date: 2010-10-13T15:16:20+09:00 Subject: Re: How to do this Robert Klemme wrote in post #949495: > Btw, parsing can be as easy as > > def replace(template, values) > template.gsub /(? values[$1] > end > end > > template = 'foo \\#{bar}-#{bingo}-#{bongo}' > x = replace template, "bar" => "1", "bongo" => "2" > p template, x Robert thank you for this. Ruby really is an amazing language. And after five years I still get puzzled how some things can be so simple. by TheR -- Posted via http://www.ruby-forum.com/.