[Solved] Regex for this string format
[ad_1] Seeing as you asked for a C# example, Case Insensitive can be selected as one of the RegexOptions. I assumed the 13 was also meant to be a 2 digit number. using System.Text.RegularExpressions; … Regex regX = new Regex( @”(\d{1,2}):(\d{1,2})-([a-z]{2})-(\d{3,5})”, RegexOptions.IgnoreCase ); if( regX.IsMatch( inputString ) ) { // Matched } … [ad_2] solved … Read more