fork download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var lines = new string[] { "Abc!@#111", "qwerty", "111", "@#$", "@#$1", " "};
  10. foreach (string s in lines)
  11. Console.WriteLine(Regex.IsMatch(s, @"^(?!\P{L}*$).{4,10}$"));
  12. }
  13. }
Success #stdin #stdout 0.12s 25312KB
stdin
Standard input is empty
stdout
True
True
False
False
False
False