<script>
var num = new Array(1,2,3,4,5,6,72,9)
var re = /([^,]\w+,).+\1/g;
alert(re.test(num.toString()));
</script>