I am trying to verify that input to a text box on winforms C # matches a valid pattern.
The pattern must be a string of only the following characters
I am considering using the Validation event in a text box to perform validation, but I am struggling with the correct regular expression to use - or maybe better than using a regular expression.
"[A-Z0-9_/]" . Regex ( ), .
'\' . , "[a-zA-Z0-9 _/]".
- "(\ w?\d? _?/?) +" -\w , \d . "?" char 0 1 , + .
KeyDown TextBox SuppressKeyPress KeyEventArgs true, , . , , KeyCode KeyEventArgs. , , , , .
Source: https://habr.com/ru/post/1758473/More articles:Чтение данных json возвращается в jQuery - jsonHow to run tests and functional tests for Android? - androidExcel COMException 0x800A03EC when user cancels file overwrite - c #How to get current threads in an Android process? - androidto cancel a delete action - NotifyCollectionChangedAction - wpfDisplay Settings FluentNHibernate - Store Files in SQL Server Database - c #Integrating Existing Pages in Zend Framework - phphow to configure ip system programmatically - c ++C # The last element of a list is listXNA 4.0 для xbox вопрос (путать) - c#All Articles