Is it possible use regex to remove small words in a text? For example, I have the following string (text):
anytext = " in the echo chamber from Ontario duo "
I would like remove all words that is 3 characters or less. The Result should be:
"echo chamber from Ontario"
Is it possible do that using regular expression or any other python function?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…