正则表达式验证只能输入中文

【正则表达式验证只能输入中文】 1> 只能输入中文:οnkeyup="value=https://www.it610.com/article/value.replace(/[^/u4E00-/u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
2> 只能输入数字和英文:οnkeyup="value=https://www.it610.com/article/value.replace(/[/W]/g,'')"
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"

    推荐阅读