Your going to need to give some more information here. Using
javascript?
On the server side? Is it always that format?
Hi Daniel
I got this line from the body of NET::HTTP.post_form. I want to extract
the digital number embedded in this line. Actually ,I think I can do
this by remove all strings begin with "<" and end with ">". But I don't
know how to do.
--
Posted via http://www.ruby-forum.com/\.
So server side... If you use the Hpricot Gem you can do this pretty easy.
a = "<td><B><font color=006689>123.20</font></B></td>"
value = Hpricot( a ).innerText.strip
HTH
Daniel
···
On 8/13/07, Ak 756 <macro.peng@gmail.com> wrote:
Daniel ----- wrote:
> On 8/13/07, Ak 756 <macro.peng@gmail.com> wrote:
>>
>> Thanks very much.
>> --
>> Posted via http://www.ruby-forum.com/\.
>
>
> Your going to need to give some more information here. Using
> javascript?
> On the server side? Is it always that format?
Hi Daniel
I got this line from the body of NET::HTTP.post_form. I want to extract
the digital number embedded in this line. Actually ,I think I can do
this by remove all strings begin with "<" and end with ">". But I don't
know how to do.