JS操作: <script> var x = "yes,she****is%%*my@love"; var y=x.replace(/\W{1,4}/g,","); alert(y) </script>