Removing repeated words in a string
Posted: 09 Jan 2020 18:20
Anyone know how to write an expression to remove the second instance of repeated words where they exist in a string?
Suppose string1 = "It's going to rain in 10mins in London London". I want string2 = "It's going to rain in 10mins in London"
Suppose string1 = "It's going to rain in 10mins in London London". I want string2 = "It's going to rain in 10mins in London"