Адрес
\d{1,5}\s\w.\s(\b\w*\b\s){1,2}\w*\.
Mobile Star
\d{1,5}\s\w.\s(\b\w*\b\s){1,2}\w*\.
const address = "One Infinite Loop, Cupertino 95014";
const cityZipCodeRegex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
const [_, city, zipCode] = address.match(cityZipCodeRegex) || [];
saveCityZipCode(city, zipCode);