How to capitalize first character after dot (.) and first character of string.
user insert like this :-
construct a vector for each answerer based. on the answers that they've written . this
vector can encode what the author knows about .then, when a new question comes in.
wonstruct a vector for each answerer based. on the answers that they've written . this
vector can encode what the author knows about .then, when a new question comes in.
qonstruct a vector for each answerer based. on the answers that they've written . this
vector can encode what the author knows about .then, when a new question comes in
And I want to display like this :-
Construct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in.
Wonstruct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in.
Qonstruct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in
This Is My Code (It also Contain tags):-
string description ="
"
Construct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in.
Wonstruct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in.
Qonstruct a vector for each answerer based. On the answers that they've written . This
vector can encode what the author knows about .Then, when a new question comes in
var sourcestring = description;
var v = new Regex(@"(^[a-z])|[?!.:,;]\s+(.)|[.][a-z]|.(< >)[a-z]", RegexOptions.ExplicitCapture);
var SentanceCasedis = v.Replace(sourcestring.ToLower(), s => s.Value.ToUpper());

Dr.Ajay KashyapPosted Nov 29, 2017, 7:21 AM
Dr.Ajay KashyapPosted Nov 29, 2017, 7:19 AM
Željko PerićPosted Nov 24, 2017, 1:48 PM