G
Guest
Hi
I want to replace a word using Regular Expression for that i am using below
code
strResult = System.Text.RegularExpressions.Regex.Replace(strInput,
txtSearch.Text.ToString().Trim(), "<b>" + txtSearch.Text.ToString().Trim() +
"</b>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
strInput = "This is a Test."
txtSearch.Text = "test"
strResult ="this is a <b>test</b>."
I want capital 'T' <test> in strResult what should i do?
Thanks in advance
Regards
Hemant
I want to replace a word using Regular Expression for that i am using below
code
strResult = System.Text.RegularExpressions.Regex.Replace(strInput,
txtSearch.Text.ToString().Trim(), "<b>" + txtSearch.Text.ToString().Trim() +
"</b>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
strInput = "This is a Test."
txtSearch.Text = "test"
strResult ="this is a <b>test</b>."
I want capital 'T' <test> in strResult what should i do?
Thanks in advance
Regards
Hemant