From: Arun Kumar Date: 2009-03-28T19:08:05+09:00 Subject: Re: Regular Expression interesting problem Eric Hodel wrote: > On Mar 28, 2009, at 02:07, Arun Kumar wrote: >> /> >> interesting problem, but i need help for solving it. Please help me. > I suggest you use Nokogiri. > > Barring that, don't use regular expressions, use something more > appropriate like StringScanner from strscan.rb. `ri StringScanner` > will get you started. > Nokogiri is a good option. But i want to use net/http for my assignment and it is compulsory. > PS: You'll probably want to do something like scan for <, then scan > for a tag name, then scan for attributes, then scan for >, etc. As you said I have to check the tag ie'