in reply to extract string between 2 elements

If you are looking to capture HTML tags, this regex may help you get started:
~m/<(.[^>]*)>/g
However, this is easily fooled by text disguised as tags. Use a real HTML/XML parser for production work.

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis