0

I need to allow only allow Chinese Characters If input English characters not allow it.

Example :

var inputEng ="TEST";
let reqChinese= /^[\u3000\u3400-\u4DBF\u4E00-\u9FFF]$/  only matching Chinese 
console.log(reqChinese.test(inputEng)); //but here getting true

Expected out-put: false //console result

  • Note :If input Chinese Character match "true" or else "false".
sameer
  • 397
  • 2
  • 9
  • 19

0 Answers0