in reply to Extract Tags between Two strings

iterate file
use Regular expression to detect start
set $found variable to 1
use Regular expression to detect end
set $found variable to 0
if found is 1 then save the line
after the iteration is complete use this to get the unique result