JavaScript中的正则表达式基础问题
字面量var reg = /\bis\b/g;
'He is a boy.Is he?'.replace(reg,'IS')
构造函数var reg = new RegExp('\\bisb\\','g');
'He is a boy.Is he?'.replace(reg,'IS')
直接使用'He is a boy.Is he?'.replace(/\bis\b/g,'IS')
求教:1、为何/\啥的每句表达方式都不一样(\\还有/\)
2、构造函数中的= new RegExp是啥 
                                    
 
                             
                            