string find and replace

Iain staffell at gmail.com
Thu May 3 07:22:56 PDT 2012


Forgive me if I am missing something obvious, but is there a 
simple option for finding all instances of a particular character 
in a string or char[] and replacing them with another character?

I can do this with std.regex, but it seems overkill, when all I 
want is the equivalent of PHP's str_replace() function.

Many thanks!




More information about the Digitalmars-d-learn mailing list