Judging whether the string has Chinese characters, the full-angle judge

xiaoxiao2021-03-13  185

Dim reg as system.text.regularexpressions.regex dim strpattern as string = "[/ u4e00- / u9fa5]" IF reg.ismatch ("My World ABC", StrPattern = True Then Msgbox ("Han Characters" Else Msgbox ("No Chinese Characters") End IF

StrPattern = "[^ / X00- / x7f]" IF reg.Ismatch ("My World ABC.,,.", StrPattern = True THEN MSGBOX ("Have Full-Way Character") Else Msgbox END IF

'Forgot source

转载请注明原文地址:https://www.9cbs.com/read-129198.html

New Post(0)