2011-07-30 45 views

回答

3

肯定。

var exp = /.../g; 
var matches = [ 
    exp.exec(str), 
    exp.exec(str) 
]; 

這匹配字符串兩次。請參閱exec[docs]

+0

哇,我不知道這件事。 –

+0

很酷,謝謝:) – Somebody