How to sparse a string like:

suppose input is str="<a>1</a><a>22</a><a>3</a>"
I want str_a=["<a>1</a>","<a>22</a>","<a>3</a>"]
How can I get str_a from str?

-- 
Posted via http://www.ruby-forum.com/.