using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
public class Program
{
public static void Main()
var list = new List<string>{"1", "12", "1a", "54b", "32 c", "56/v", "43-23", "45c/34", "45/34d", "67 / 345", "23a / 56", "12 / 56B", "1 3 5", "34 a a", "34b s", "34b 456s", "34b/456s", "34b / 456s"};
var pattern = @"^\d+[\s]?[\w\W]?[\s]?[\W]?[\s]?\d+$";
var regex = new Regex(pattern);
foreach (var item in list)
Console.WriteLine(string.Format("{0} - {1}",regex.IsMatch(item),item));
}