驗證網址blog.longwin.com.tw安全性

JavaScript Regex 的 字串比對(Match) 與 取代(Replace) - Tsung's Blog

剛經過測試replace(/4$/g,'#')方式 在一個字串含有多個重複的字元時,似乎只會取代最後一個出現的字元 str = '4+44+44+4';0 str.replace(/4$/g,'#'); //預期為'#+44+44+#' //結果為'4+44+44+#' 至於動態產生規式,在上述方式都未能達成的情況上,就先暫不考慮了=_= 最後 ......

網址安全性掃描由 google 提供