Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //detect cyrillic letters in string (Regexp)
- //cyrillic letters
- public static bool ContainsRus(string TestString)
- {
- return
- Regex.IsMatch(TestString, @"[а-я]", RegexOptions.IgnoreCase);
- }
- //cyrillic letters and spaces
- public static bool ContainsRusOrSpace(string TestString)
- {
- return
- Regex.IsMatch(TestString, @"[а-я]|\s", RegexOptions.IgnoreCase);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement