如果换个方法的话:
varstr=str.split("echo ");
c=varstr.length
for(var i=0;i<c;i++)
  varvarstr=varstr[i].split("\";");