Posted 3 years ago
by Siggi Ullrich
Version: 19.1.2
Platform: .NET 4.6
Environment: Windows 10 (64-bit)
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]