# Last Poblem in remove

**URL:** <https://www.ruby-forum.com/t/last-poblem-in-remove/175331>\
**Category:** Rails\
**Created:** [September 11, 2009, 11:53am UTC](https://www.ruby-forum.com/t/last-poblem-in-remove/175331 "2009-09-11T11:53:18Z")\
**Posts on this page:** 1\
**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 11, 2009, 11:53am UTC](https://www.ruby-forum.com/t/last-poblem-in-remove/175331/1 "2009-09-11T11:53:18Z")

</div>

Hi,

```
I have in html as i earlier told u from scrape so i want to remove

```

\<span

-   

so that i want to remove from doc

after i wanna remove consecutive span tags except last span tag Is  
it  
possible can anybody help me,

OUTPUT:

\<span

-    

Regards  
Prashanth Hiremath
