Eric DUMINIL wrote:
> '20061209.txt'.parse_for_variables('{year:4}{month:2}{day:2}.txt')
> => {:year=>"2006", :day=>"09", :month=>"12"}

I like this. It's sort of like a cut down regex for non-programmers. You 
should write this up with a definition and put it in a library. I bet 
people would use it.

Don't forget to come up with a cool name.

best,
Dan

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