I want to find words inside text, where word contains only preselected character set.
For example: I use regex to split on characters not in set and remove entries that are empty
Like:
string inp = @"~T!@#e$мудак%š^t<>is69&.,;((טעראָר))_+}{{男子}[죽은]ที่เดิน:?/Ök\|`'+*-¤=";
string reg[] = {"[^A-Za-zšžõäöüŠŽÕÄÖÜ]"};
foreach (string word in inp.Split(reg, StringSplitOptions.RemoveEmptyEntries))
Console.Write(word + " ");
Output, that I am trying to get, is:
T e š t is Ök