From: "henryturnerlists@..." Date: 2008-10-06T23:19:26+09:00 Subject: Hpricot elem index/position Hey, Trying to find the String index of an Hpricot::Elem within its doc. For example.. doc = Hpricot("bobjamesdan") elem = doc.search("a")[1] elem.start #=> 10 ( the first '<' of the second a tag.) and eventually the following would be good.. elem.length #=> 12 elem.end #=> 21 Any thoughts appreciated! Henners