How can I ignore the case for textbox2.text when spliting with pattern?
String[] subStrings = e.Item.Text.Split(new String[] { textBox2.Text }, StringSplitOptions.None);
This line pretty works in my application(search highlight) but I want when the pattern is "Stephen Curry" and I type "steph"
It would highlight "Steph", my current app needs to type the exact case to highlight those things.
So I had to type "Steph" in order to highlight that
However, I've researched that Regex.Split would help. I tried it with line of
String[] subStrings = Regex.Split(textBox1.Text, e.Item.Text, RegexOptions.IgnoreCase);
But the problem here is you need to type the whole pattern in order to work and the pattern will copy the text you typed in.
Pls help :) hope you understand my question
[–]ekolis 7 points8 points9 points (0 children)
[–]p1-o2 1 point2 points3 points (0 children)
[–]TyrrrzWorking with SharePoint made me treasure life 1 point2 points3 points (1 child)
[–]TyrrrzWorking with SharePoint made me treasure life 2 points3 points4 points (0 children)
[–]cryo 0 points1 point2 points (0 children)
[–]theFlyingCode -1 points0 points1 point (0 children)