how to identify characters in text as opposed to letters and whitespace in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to identify characters in text as opposed to letters and whitespace in c#

2nd Jun 2022, 11:29 AM
Asyl Toktosunova
4 Answers
+ 1
Thanks for your answer, but I'm already solved 😉
2nd Jun 2022, 4:24 PM
Asyl Toktosunova
+ 1
as you said, I created an array where I put the characters and then used a for
2nd Jun 2022, 6:04 PM
Asyl Toktosunova
0
There are lots of ways. 2 that come to me now: You could create an array with all the special characters and include the whitespace, then check by iterating through the array. You could look up what special functions/methods etc there are that might already check for letters only.
2nd Jun 2022, 4:15 PM
Ausgrindtube
Ausgrindtube - avatar
0
Great job! Maybe you could help others by writing what you did or what you thought about to do it.
2nd Jun 2022, 6:00 PM
Ausgrindtube
Ausgrindtube - avatar