var s = "1 5 2 4 5";

  var reg = /(\d)(.)(?=.*\1)/;

  alert(reg.test(s));

posted on 2011-03-10 17:21  ia00.com  阅读(237)  评论(0)    收藏  举报