static void Main(string[] args) { string value = "9楼18楼"; Regex r = new Regex(@"^([1-9]{1}\d*[楼])+$"); Console.WriteLine(r.Match(value).Success); Console.ReadKey(); }