Is there a direct analog to sub() in D2? The replace() function in regex
seems a bit overkill for what I need. I just want to substitute one string
for another.
http://www.d-programming-language.org/phobos/std_array.html#replace
import std.array;
string a = test;
string b = a.replace(t, p);
assert(b == pesp);
Thanks.
Am 30.01.2012, 16:57 Uhr, schrieb adamss3 sadam...@woh.rr.com:
Thanks.
The only downside of strings being arrays: a lot of typical string
functions are in std.array. :D
On 2012-01-31 00:09, Marco Leise wrote:
Am 30.01.2012, 16:57 Uhr, schrieb adamss3 sadam...@woh.rr.com:
Thanks.
The only downside of strings being arrays: a lot of typical string
functions are in std.array. :D
If everything in std.array works for strings as well, shouldn't
std.string
On Tuesday, January 31, 2012 08:16:25 Jacob Carlborg wrote:
On 2012-01-31 00:09, Marco Leise wrote:
Am 30.01.2012, 16:57 Uhr, schrieb adamss3 sadam...@woh.rr.com:
Thanks.
The only downside of strings being arrays: a lot of typical string
functions are in std.array. :D
If everything