2010-05-27 48 views

回答

3

嘗試這種情況:

"asnthsnth4nts4h3n".replace(/\d+/g, function($0) { return Array(parseInt($0, 10)+1).join(" "); }) 
+0

真棒。我不知道你可以做那種酷酷的Perl!謝謝。 – 2010-05-27 23:42:43

相關問題