1) Copied list into text editor 2) Regex replace: From: ^*([^]*)([^]*)([^]*)*$ To: array("state" => "\1", "abbreviation" => "\2", "postal code" => "\3"),