There is, say, the following line:
string = 'Word Word Word something else Word' Using regular expressions, how to bring this string to the form:
string = 'Word something else Word' That is, words repeating once do not change, and those words that occur several times in succession, delete and leave only one of a number of repetitive ones.
string = 'Word,Word; Word something else Word'string = 'Word,Word; Word something else Word'? There are many special cases. - Wiktor Stribiżew