正则 校验英文逗号字符串

正则表达式 怎么校验只能有英文逗号呢?
1、首尾不能包含中英文逗号
2、中间不能包含中文逗号

例如
a,b,c,d 校验不通过
a 通过
a,b 通过
,,,a,b,,,,不通过
该怎么处理呢?

也就是允许中间有连续的英文逗号是吧?

if (! /,|^,|,$/.test(str))
    alert("通过");
else
    alert("不通过");

^(\d+,?)*(?=\d$)

用/,/g判断是否包含中文逗号

这个正则表达式是对的

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <script type="text/javascript">
        function CheckChinese(obj,val){
        //var regex = "^\,|(\,{2,})|\,$";
        var regex = new RegExp("^\,|(\,{2,})|\,$");
        if(regex.test(val)){
            console.log('首尾和中间不能包含中文逗号');
        }else{
             console.log('true');
        }
    }
    </script>
    <body>
        <input id="test" type="text" onblur="CheckChinese('test',this.value)" />
    </body>
</html>