I need a regex to avoid the basic replace, the loops and the "if" everywhere.
I am looking for an expression in a full text that could get me this result:
\n\n\Lorem\n\n\t\n\r\n\Ipsum \t\t\t Lorem\t\t\tHello Stackoverflow!
Lorem\r\t\nTest lorem ipsum V++ \n\rO+\n V2.0
The result I am expecting is all the words except the \n
, \r
, \t
, I need the Lorem
, Ipsum
, Test
and Hello Stackoverflow
on the first sentence and also the V++
and the O+
. but not the V2.0
Is there any better way than removing the bad chars and extract the words via a regex?