I am trying to use RegEx to validate user input, the input format should be :
partA/partB
partA: number(number of digit is a variable)
partB: 2 digit number
I use the workable expression in Flex in vb.net, but not work.
My code is like follows:
If Not Regex.Match(ItemNo.Text, "/\d\{2\}$").Success Then
ItemNo.Text = "Invalid Contract No."
ItemNo.Focus()
Return
End If
Could anybody help me on this? Thanks.