Where is my string.replaceAll in Swift?
So prior to getting into Swift , I spent most of my time coding in either Java or Javascript, and there is one Java method that I need to use from time to time at work and that is String.replaceAll . So naturally when I started coding in Swift, one of the things that I was thought about was, does Swift have a String.replaceAll method? Well Swift does have a replaceAll method, its just called something else i.e. String.stringByReplacingOccurencesOfString . So the name is fairly logical and does make sense, its just that my brain was wired to replaceAll, prior to coming across this method.