regexpression highlight results
-
ok, I have a simple regular expression:
Regex to_find = new Regex(textBox2.Text, System.Text.RegularExpressions.RegexOptions.None); textBox3.Text = to_find.Matches(richTextBox1.Text, 0).Count.ToString();
obviously, it just sends the count of the resulting matches to textBox3. this is good to test regular epxressions, but it doesn't provide any way I can see to format the results (besides the replace option). like for instance, I would like to atleast select the results one at a time (select, not highlight), without using the "find" thing for a richTextBox.find(...). even more though, I would prefer to actually be able to highlight the results in blue or green or something of that sort, rather than just selecting them. where do I find these options for regular expressions? sry I don't know all the big terms for classes or what not. thanks for the help, Stephen P. -
ok, I have a simple regular expression:
Regex to_find = new Regex(textBox2.Text, System.Text.RegularExpressions.RegexOptions.None); textBox3.Text = to_find.Matches(richTextBox1.Text, 0).Count.ToString();
obviously, it just sends the count of the resulting matches to textBox3. this is good to test regular epxressions, but it doesn't provide any way I can see to format the results (besides the replace option). like for instance, I would like to atleast select the results one at a time (select, not highlight), without using the "find" thing for a richTextBox.find(...). even more though, I would prefer to actually be able to highlight the results in blue or green or something of that sort, rather than just selecting them. where do I find these options for regular expressions? sry I don't know all the big terms for classes or what not. thanks for the help, Stephen P.There are many Regex Editors around for .NET just google, I cant remember the names now. xacc-ide 0.0.14 now with C#, MSIL, C, XML, ASP.NET, MyXaml and HLSL coloring - Screenshots