I would like to parse some text section. Here is example text.
;; Description:
define condition __CondList1TOMB2RAD_dst
url.address="46.249.255.139/32"
end condition __CondList1TOMB2RAD_dst
;; Description:
define subnet TOMB2RAD_src
100.72.59.65/32
100.72.59.66/32
20.253.139.54/32
20.253.19.56/32
end subnet TOMB2RAD_src
define condition TOMB2RAD_dst
condition=__CondList1TOMB2RAD_dst
end condition TOMB2RAD_dst
I would like to parse text which is between define subnet TOMB2RAD_src and end subnet TOMB2RAD_src so the result should be all IPs between.
100.72.59.65/32
100.72.59.66/32
20.253.139.54/32
20.253.19.56/32