Capturing the output enclosed in [ ]

I have input data as ![CDATA[…]] enclosed in <>. The data inside this is in a CSV format with delimiter “;”.
How can I extract and capture only the CSV portion?