Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
string RemoveComments(string str, string delimiter)
|
||||
{
|
||||
//regular expression to find a character (delimiter) and
|
||||
// replace it and everything following it with an empty string.
|
||||
//.Trim() will remove all beginning and ending white space.
|
||||
return Regex.Replace(str, delimiter + ".+", string.Empty).Trim();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue