I need to prevent the user input Chinese character. My code:
/^[^\u4E00-\u9FA5]^$/;
The result is , the input must be Chinese character input instead of prevent. Whats wrong with my code??
I need to prevent the user input Chinese character. My code:
/^[^\u4E00-\u9FA5]^$/;
The result is , the input must be Chinese character input instead of prevent. Whats wrong with my code??