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:
  1. Dim strIMEIFormat as String = "\d{6}-\d{2}-\d{6}-\d{1}"
  2. Dim strIMEI as String = "123456-12-123456-1"
  3. MsgboxBox(Regex.IsMatch(strIMEI,strIMEIFormat)

Am i missing something or what ?