Answered by:
Problem to keep Alphanumeric

Question
-
Answers
-
Try this too:
bool is_valid = Regex.IsMatch( text, @"^[a-zA-Z0-9\-_]+$" );
- Proposed as answer by Sabah ShariqMVP Sunday, April 9, 2017 2:36 PM
- Marked as answer by Jackson_1990 Tuesday, April 18, 2017 6:28 AM
All replies
-
-
-
-
Try this too:
bool is_valid = Regex.IsMatch( text, @"^[a-zA-Z0-9\-_]+$" );
- Proposed as answer by Sabah ShariqMVP Sunday, April 9, 2017 2:36 PM
- Marked as answer by Jackson_1990 Tuesday, April 18, 2017 6:28 AM