Messaging Gateway

 View Only

SMG 10 : How to detect Chinese character using RegEx

  • 1.  SMG 10 : How to detect Chinese character using RegEx

    Posted Sep 29, 2014 04:57 AM

    Hi All,

     

    Any tips or guide on how to detect like below:

     

    As long as a single Chinese character exist in the email, we want to block it.

     

     

     

    We have tried multiple regex detection but it doesn't work.

     

    E.g : ^[\x4E-\x9F]+[\w\d]*$ and [\x{4e00}-\x{9fa5}]