I have this string:
I like grumpy cats. Do you? ффффф ыыыыы ইউটিউব থেকে If I use \w in regexp - then I get only words written with latin letters:
final text = "I like grumpy cats. Do you? ффффф ыыыыы ইউটিউব থেকে"; RegExp re = RegExp(r"\w+"); List<String> words = []; for (Match match in re.allMatches(text)) { words.add(match.group(0)!); } print(words); Output:
[I, like, grumpy, cats, Do, you] But I need this result:
[I, like, grumpy, cats, Do, you, ффффф, ыыыыы, ইউটিউব, থেকে] In this answer I found that \p{L} means "any kind of letter from any kind of language". But I could not make it work in Flutter/Dart