I have a string that looks like this:
my_str = "<h1>title</h1><p>parag1</p><p>parag2</p> (more paragraphs)";
I'd like to create two arrays : arr_tags (contains 'h1', 'p', 'p') and arr_contents (contains 'title', 'parag1', 'parag2').
I first thought "splice" and "split" methods, but I do not see how.