Extract table from raw text

I am not positive that , I can get the tables based on the criteria…you can try the below approach…