Как убрать все знаки препинания из текста? How do I remove all punctuation marks from the text? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Как убрать все знаки препинания из текста? How do I remove all punctuation marks from the text?

Предположим, дан текст: Алексей шел по лесу и собирал грибы.Собрав корзину, он решил вернуться домой, но тут началась гроза. Алексей был испепелён молнией. Как из данного текста удалить все знаки препинания, вроде пробелов, запятых, точек, превратив текст в единую строку? TRANSLATED: Suppose the text is given: Alexey was walking through the forest and picking mushrooms.After collecting the basket, he decided to return home, but then a thunderstorm began. Alexey was incinerated by lightning. How can I remove all punctuation marks, such as spaces, commas, and dots from this text, turning the text into a single line?

8th May 2021, 1:36 PM
Мамазузу Равви
Мамазузу Равви - avatar
4 Answers
+ 1
Пожалуйста, покажите свою попытку. Please show your attempt. Hint regex or search.
8th May 2021, 2:27 PM
JaScript
JaScript - avatar
+ 1
Я не совершал попыток.Мне просто необходимо это узнать. I didn't make any attempts.I just need to know.
8th May 2021, 2:34 PM
Мамазузу Равви
Мамазузу Равви - avatar
+ 1
Очень просто если хочется, посмотри мои ответы.
10th May 2021, 10:58 AM
JaScript
JaScript - avatar
0
Расскажи, как это сделать, друг. Поведай древнюю тайну
9th May 2021, 9:04 PM
Мамазузу Равви
Мамазузу Равви - avatar