How to remove all occurrences of a string in another? I can do this using the following code:
std.array.replace: "the string".replace("the", "")
But I wonder if there is a dedicated function for this in phobos?
How to remove all occurrences of a string in another? I can do this using the following code:
std.array.replace: "the string".replace("the", "")
But I wonder if there is a dedicated function for this in phobos?
Copyright © 2021 Jogjafile Inc.
Yes. It's correct function. But you might want to use it from
std.string. Because if in future version something changes you'll still be using correct function.From documentation of
std.string: