js RegExp不能匹配空格和换行吗

 <div>关于我们
                           <div class="showtab">
                            <div class="content">
                              <div class="one">
                                    .....

用下面的js去匹配匹配不到

 function replaceAll(obj ,oldStr, newStr) 
{
     return obj.replace(new RegExp(">[\s]*"+oldStr+"[\s]*<","gm"),function(word)          {
          // console.log(word);
         return ">"+newStr+"<"}
  ); 

}

下面这段就可以了

return obj.replace(/>[\s]*关于我们[\s]*</gm, "><"); 

用RegExp注意转义\

 return obj.replace(new RegExp(">[\\s]*"+oldStr+"[\\s]*<","gm"),