var string = "brendyi-1/acura.html?tv_brand=&tv_model-acura=MDX&tv_year=2008&tv_engine=3.7", reSec = /\d+(\.\d+)?/g, secString = string.match(reSec); alert(secString);