views:

75

answers:

4
+2  A: 
result = subject.gsub(/≪[^>]*>/, '')

should do the trick.

[^>]* means: Match any number of characters except >.

Tim Pietzcker
+2  A: 

The patter is simple as that:

≪[^>]*>
galambalazs
A: 

Just a helpful hint, I use Rubular to help with regex writing a debugging.

yonkeltron
A: 

It sure looks like you're trying to parse XML with regular expressions, which is a very difficult and fragile way to extract the data you need from that document.

You might be better off parsing it and selecting the information you need using XPath or DOM.

Winfield