On Wednesday, 3 January 2018 at 05:45:32 UTC, Tony wrote:

Someone else should know what the correct replacement
is for removechars().


the replacement is known as 'programming' ;-)

//string trimmed = removechars!string(line,"[\\[\\]\"\n\r]");
string trimmed;
foreach(c; line)
{
if(c != '[' && c != ']' && c != '\"' && c != '\r' && c != '\n' )
      trimmed ~= c;
}

Reply via email to