I know that there is MatchRegularExpression(). It checks a string if it matches a RegEx. But I wan't to have a RegEx as an input mask. So it stops the user entering false data while he is typing.
Just imagine the following input:
"123-456" //valid
"123/456" //valid
"123.456" //false
"1-456" //valid
Sebastian