From: Luiz Vitor Martinez Cardoso Date: 2008-01-06T09:07:09+09:00 Subject: html parser with regex, how to solve? ------=_Part_46852_22289685.1199578034535 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yeah, I`m trying to develop a simple application using ruby (when this works i will pass to rails). I need get the source code from a URL, and find for this string:

$299.99

wow, but i need search for not only 149.00, but for all possible numbers, my friend suggest this:

*$\d+\.\d{2}.*

i think this works! but i need other thing... look my code: #!/usr/bin/ruby require 'hpricot' require 'open-uri' @content = Hpricot(open(" http://www.newegg.com/Product/Product.aspx?Item=N82E16855101066")) now how i can find for

*$\d+\.\d{2}.*

? @content.search("

*$\d+\.\d{2}.*

") is broken ;( how i can solved this? thanks for you attention, Luiz Vitor Martinez Cardoso. -- Regards, Luiz Vitor Martinez Cardoso [Grabber]. (11) 8187-8662 rubz.org - engineer student at maua.br ------=_Part_46852_22289685.1199578034535--