Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var str = "";
- if(str.Length == 6 || str.Length == 9)
- return true;
- else return false;
- var str = "111111111";
- var pattern = @"^(.{6}|.{9})$";
- Console.WriteLine(Regex.IsMatch(str, pattern));
- ^.{6}(.{3})?$
Add Comment
Please, Sign In to add comment