Added method to extract infomation using regex