Posted 3 years ago
by Siggi Ullrich
Version: 19.1.2
Platform: .NET 4.6
Environment: Windows 10 (64-bit)
![Avatar](https://secure.gravatar.com/avatar/06d6bf70ccbad022e67b5b1a5d9231c7.jpg?s=64&d=identicon&r=g)
Hello,
we use a MaskedTextBox to allow only input specified by some RegEx.
This example does not work as expected:
(?=(^.{0,63}$))(^([a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]*)*)?$)
shows this in the textbox:
?=^$^$
IsCaseAutoCorrected = false;
IsCaseSensitive = true;
MaskKind = MaskKind.Regex;
PromptVisibility = MaskPromptVisibility.FocusedOnly;
IsCaseSensitive = true;
MaskKind = MaskKind.Regex;
PromptVisibility = MaskPromptVisibility.FocusedOnly;
Mask = "(?=(^.{0,63}$))(^([a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]*)*)?$)";
Could you please verify this behaviour and show a possible workaround?
Regards,![]()
![]()
[Modified 3 years ago]