I want to replace a particular substring from a file or a NSString with another string. This is like typical 'Replace All' functionality. Can you please suggest any existing routine or function for this.

Thanks a lot. Really appreciate your help.