From: Tim Hunter Date: 2007-06-22T06:30:38+09:00 Subject: Re: string search Jeffrey Bowen wrote: > @speed += 1 if sp.slice(8..13) == "03X16" > > I've pulled bits 8 though 13 from my string and want > to see if it equal 03X16 where X is number 0-9. > Something like "grep -c 03.16 temp" would work. I've > tried \d of course this did not work. > > @speed += 1 if (/03\d16/.match(sp.splice(8..13))) -- 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]