views:

190

answers:

2

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
+2  A: 

Java:

String replaceAll(String regex, String replacement)
jesper
I've marked this as the correct entry as it was the first one. Thanks
matt
+1  A: 

TSQL

REPLACE ( string_expression , string_pattern , string_replacement )
Learning
Thank you for this entry
matt