JSFiddle - React, Tailwind, and code Playground

JavaScript

var s = "Pearl River, NY (10965)";
alert(s.replace(/\([\d]*\)/,''));