JSFiddle - React, Tailwind, and code Playground by tuga May 12, 2014 JavaScript var a = "a1b2c3"; a = a.replace(/^.*?([.,\d]+).*?$/, "$1"); alert(a);