From: Tim Hunter Date: 2007-07-26T07:00:54+09:00 Subject: Re: read variables from string daniel wrote: > Thanks for your input. But I was looking for something like an inverse > of sprintf (where you can extract variables from a string according to > a given format, instead of gluing a string together from variables). > Does anybody know if something like this exists in ruby? > The opposite of printf is scanf: http://hypermetrics.com/rubyhacker/code/scanf/scanf-rdoc/files/EXAMPLES.html -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]