• Login

Snippets

25

public string AddSpaceAfterComma(string myInput)

{

try

{

String text = myInput.ToString();



text = Regex.Replace(text, @",(?!\s)", x => x + " ");



return text;

}

catch (Exception ex)

{

Exceptions.ProcessModuleLoadException(this, ex);



return "";

}

}

Posted in: C Sharp - C#

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Name (required)

Email (required)

Website