I have a long string with several HTML style markups. I'm trying to pull
the stuff our of a particular markup set.
For example:
<blah1> Stuff </blah1><blah2> Other stuff</blah2><blah3>Yet more
stuff</blah>
I'd like to get "Stuff". What's the best way?
Thanks!
Leam
···
--
Mind on a Mission <http://leamhall.blogspot.com/>
The best way is to use Nokogiri. Read Parsing an HTML/XML document - Nokogiri
···
On Tuesday, May 19, 2015 02:59:04 PM leam hall wrote:
--
Regards,
Arup Rakshit
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Arup, thanks! I was using Nokogiri but it wason't working. Then I realized
the file had substituted the < and > for the <> characters. Now that
I fixed that, it works.
Leam
···
On Tue, May 19, 2015 at 2:02 PM, Arup Rakshit <aruprakshit@rocketmail.com> wrote:
On Tuesday, May 19, 2015 02:59:04 PM leam hall wrote:
>
>
The best way is to use Nokogiri. Read
Parsing an HTML/XML document - Nokogiri
--
Mind on a Mission <http://leamhall.blogspot.com/>