Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 10:02, 15 March 2023
, 1 year ago→{{header|D}}
(→{{header|D}}: Replaced obsolete solution. std.string.removechars was removed from D circa 2018.) |
m (→{{header|D}}) |
||
Line 1,130:
string stripchars2(string s, string chars) {
import std.regex;
return replaceAll(s, regex(
}
|