Python Extract Data From String Using Array