Hello community,
I started to learn Wolfram Mathematica v12.0 some days ago and now I want to solve a little Problem.
There is a Wordlist.txt with German, Chinese and some other signs/symbols in it.
Now I want to remove every line/word in it, that contains something different then “abc…, ABC…,123…, and !?”.
I did many exercises and one of them was about strings, but I don’t understand how to put those things together yet.
Thanks for some help, with best regards :3
p.s. sorry about my English, missed practicing a very long time :0
The code looks crazy when I try to copy and paste it so please look at the Picture.
Maybe a Problem with extra symbols / Chinese chars?
So this only works with “normal” characters or numbers and you have to say which characters you want to delete,.
But I want to say which should stay in the file and also it does not delete the whole string only the character you put in the list.
So as you can see I’m not experienced with Mathematica, but I’m willing learn
Hi Hans Dolhaine, first of all many thanks but that’s not exactly what I meant.
I want to remove Chinese/Arabic characters from a text file. Only numbers and letters from the German alphabet should be kept. So to put it simply, there should only be a-z, A-Z, no umlauts and “!?”.
So e.g.
Wordlist.txt before ------> Monkey should! Banana? Dog 今 天 Mother 指
Wordlist.txt after -------> Monkey should! Banana? Dog
I think I picked a somewhat difficult exercise for a beginner, but it is har for me to let go of things that I set out to do.