From: Aaron Patterson Date: 2009-12-16T04:45:23+09:00 Subject: Re: regexp to pars a HTML tag value On Wed, Dec 16, 2009 at 03:53:35AM +0900, Mehdi Karamnejad wrote: > I've used Nokogiri before, I don't want to use it in this scenario > because in the string there is only one tag(which is span) and it's > simple,any ideas? This stackoverflow post might help: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 -- Aaron Patterson http://tenderlovemaking.com/