I have a string var m = "I random don't like confusing random code."
I want to delete all instances of the substring random
within string m
, returning string parsed
with the deletions completed.
The end result would be: parsed = "I don't like confusing code."
How would I go about doing this in Swift 3.0+?