From: Srijayanth Sridhar Date: 2009-05-07T21:21:25+09:00 Subject: Re: removing Whitespace using regexp --000e0cd48170e64ea60469518c7d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit How many places do you know that have extensive Ruby training programs that expect you to write HTML parsers armed with nothing but regular expressions? ;) I live in Bangalore, and I don't know one. Either he truly has a sadistic boss, or his truth is stranger than fiction. I don't doubt that it is homework of some sort. Jayanth On Thu, May 7, 2009 at 5:10 PM, Mark Thomas wrote: > > > I know your boss and whoever it is who is dangling your carrots won't let > > you use Hpricot, but tell him you will use Hpricot to get properly > formatted > > html and then write a parser to parse the properly formatted html. Even > he > > can't be opposed to that(seeing as how he wants you to reinvent wheels). > > That way you can get rid of your whitespace problem and deal with the > cosmos > > at large. > > Here's what we know about Arun from his previous posts... > * he is a "trainee" doing assignments. > * he is learning ruby > * "nobody else" around him knows ruby > * his "boss"/teacher is giving him specific assignments that seem to > be purely academic exercises, because the constraints (e.g. don't use > gsub, parse "example.com") would otherwise be completely ridiculous. > * He doesn't have the authority to re-scope the assignment or offer > alternate solutions. > > I believe he is asking us to do his homework. > > --000e0cd48170e64ea60469518c7d--