JS正则

1. 只取数字

replace(/[^0-9]/ig, "");

原文地址:https://www.cnblogs.com/gary-tao/p/5462258.html