Remove Open And Close Square Brackets In A Sentence Using Regular Expression In C#
Given the sample string data [Posted Friday September 23 2011] and you need format the sentence like this Posted Friday September 23 2011 without the square brackets, a solution would be to use Regex.
string date = Regex.Replace(date, "[\\[\\]]", string.Empty); date = Regex.Replace(date, @"[\[\]]", string.Empty);
nao i know XD
ReplyDelete