If I had a string like so:
my_string = 'this is is is is a string'
How would I remove the multiple is
s so that only one will show?
This string could contain any number of is
in there such as
my_string = 'this is is a string'
other_string = 'this is is is is is is is is a string'
A regex solution would be possible I suppose however I'm not sure how to go about it. Thanks.