1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Text.RegularExpressions;
- namespace WpfApp1.Methods
- {
- public class WordOnlyMeth
- {
- public bool WordOnly(string text)
- {
- Regex regex = new Regex("[^А-Яа-яЁё]+");
- bool check = regex.IsMatch(text);
- if (check == true)
- {
- return false;
- }
- return true;
- }
- }
- }
|