Im trying to use Regex.IsMatch method to match an IMEI number with the input data. but its not working properly. sometimes even if the data is correct, it would return false and vice versa also. here's da code
VB Code:
Dim strIMEIFormat as String = "\d{6}-\d{2}-\d{6}-\d{1}" Dim strIMEI as String = "123456-12-123456-1" MsgboxBox(Regex.IsMatch(strIMEI,strIMEIFormat)
Am i missing something or what ?




Reply With Quote