<script> var str=('Paul,Paula,paul,Ppaul,Paul'); var new_str=str.replace(/(Paul)/g,"ringo");//Paul替换为ringo document.write(new_str); </script>