b = /^http/i.test("http://community.csdn.net");/^http/i即为JS的正则表达式直接量或者var re = new RegExp("^http","i");