I\'ve to make a textbox(WPF) for entering time with validation. I want to enter a regular expression validation for time (6:12 am).
Regex is not the right choice here. You ultimate do need to convert a string to a date or time. Use DateTime.TryParse() so you are always sure that if the validation allows it then the conversion will work as well.