SushiWen's Blog
顯示具有
replace
標籤的文章。
顯示所有文章
顯示具有
replace
標籤的文章。
顯示所有文章
2011年7月10日
javascript replace
javascript replace多行
string.replace(/(
)[\s\S]*(<\/fb:comments>)/ig, "$1$2");
\s is for all newline and whitespace characters and \S is for all non-whitespace chars.
較舊的文章
首頁
訂閱:
文章 (Atom)