I’m trying to detect if input is not in English chars, will disallow the input and i’m using code below to validate the input. The code works fine if the input is in Non-English, for example, ‘ກັຫກ່ຫ່’, ‘你好‘. When the input contains English chars and Non-English chars, the code below will allow the input to go through and i don’t want this to happen. How can i disallow the input if there is any Non-English chars detected in the input?
If Not Regex.IsMatch(Edt.Text, "[A-Za-z0-9]") Then
End If
Use this regex: