I am seeing if it's worthwhile creating a reference showing how to do common things in multiple programming languages.
Please list below the command that you would use to achieve the following in your chosen programming language:
String Replacement
examples:
PHP:
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
Objective-C:
- (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement