# Hpricot search

**URL:** <https://www.ruby-forum.com/t/hpricot-search/175105>\
**Category:** Rails\
**Created:** [September 8, 2009, 5:45am UTC](https://www.ruby-forum.com/t/hpricot-search/175105 "2009-09-08T05:45:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashanth\_hiremath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Post date:** [September 8, 2009, 5:45am UTC](https://www.ruby-forum.com/t/hpricot-search/175105/1 "2009-09-08T05:45:18Z")

</div>

I have an html like

Red\<

- …
- …  
blue
- …
- I have to write code in such way that i wanna search 

- text  
until

between 2 span Ex:

-  
 …-

---

<div class="post-metadata">

**Author:** ![prashanth\_hiremath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Post date:** [September 8, 2009, 7:21am UTC](https://www.ruby-forum.com/t/hpricot-search/175105/2 "2009-09-08T07:21:16Z")

</div>

What have you written so far and why do you think it didn’t work?

On Sep 7, 8:43 pm, prashanth hiremath [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![prashanth\_hiremath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Post date:** [September 8, 2009, 8:12am UTC](https://www.ruby-forum.com/t/hpricot-search/175105/3 "2009-09-08T08:12:12Z")

</div>

I have an html

### Central Kolkata
- **Eden Gardens** (one of the most famous cricket stadiums in the world),
- **Akashwani Bhavan** , All India Radio building
- **Indoor Stadium**
- **Fort William** , the massive and impregnable British Citadel built in 1773. The fort is still in use and retains its well-guarded grandeur. Visitors are allowed in with special permission only.
- **Victoria Memorial** [[10]](http://www.victoriamemorial-cal.org "http://www.victoriamemorial-cal.org") Along St. Georgeâ€™s Gate Road, on the southern fringe of the Maidan, you will find Kolkata's most famous landmark , a splendid white marble monument (CLOSED MONDAYS).
- **Calcutta Racecourse**
- **Chowringee** , is the Market place of Kolkata. You will find shops ranging from Computer Periferals to cloth merchants. Even tailors and a few famous Movie theaters too. This place is a favourite pass time for local people.

### Northern Kolkata
- **Nakhoda Mosque1** (the largest mosque in Kolkata) and the
- **Shobhabajar Rajbari** the ancestral house of Rja Naba Krishna, one of the rich locals to side with Clive during his war with Nabab Siraj-Ud-Daula.
- **Jorasanko Thakur Bari1** (Tagore Family residence).
- **Parashnath Jain Temple** , near the Belgachia metro station.
- **Parashnath Jain Temple** , at Gouribari, less visited, reachable from the Sovabazar Metro station (take an auto rickshaw).

if wanna search innert\_text of

- tags upto Northern Kolkata

but it searches all

- 

- i know but i wanna stop upto element using  
hpricot

 

Regards  
Prashant

---

<div class="post-metadata">

**Author:** ![prashanth\_hiremath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Post date:** [September 8, 2009, 9:01am UTC](https://www.ruby-forum.com/t/hpricot-search/175105/4 "2009-09-08T09:01:24Z")

</div>

Is there any solution for it?

On Tue, Sep 8, 2009 at 11:40 AM, prashanth hiremath \<
