Using regex expression, how can I retrieve only words, while ignoring any other symbols like commas, numbers, etc.?
val words = text.split("\b([-A-Za-z])+\b")
For example:
This is a nice day, my name is...
I want to get:
This, is, a, nice, day, my, name, is
while ignoring ,
and ...
.