【发布时间】:2013-02-15 19:15:10
【问题描述】:
var s = "1236(75)";
var s = s.replace(/\(|\)/g, '');
alert (s); // this gives me 123675
what i actually need is 75
any help will be appreciated!
上面的代码结果为 123675,但我需要它只返回 75,请帮忙
【问题讨论】:
标签: javascript regex replace parentheses