function testReg3 () {
var str = "<p class='demo'>hello icketang</p>";
// console.log(str.match(/\bh\w+\s+\b\bi\w+\b/g));
alert(str.match(/\bh\w+\s+\b\bi\w+\b/g));//单词前后有标点必须用边界符\b
// ^的意思是以其后的字符为开始
// \b的意思是该字符的前或者后为空格或者标点
}