输入 HTML 代码……
xxxxxxxxxx
var str = "runoob.com";
var patt1 = /[.]/;
document.write(str.match(patt1));
输入 CSS 代码……