-4

I have 200 words of technology names (such as ASP.NET, C#, Java) which I have to spell check for proper naming conventions: Asp.Net becomes ASP.NET JAVA becomes Java Mysql becomes MySQL Jquery becomes jQuery Testng becomes TestNG Nodejs becomes Node.js Angularjs becomes AngularJS I used dictionarylike the link attached herewith But it takes around 4-5 seconds for correcting just 5 words.

My question is: 1. How to reduce the time?

Program is written in C#.

1 Answers1

1

Did you try Regex.Replace, I think this is what you need ?

string input = "this is mYsql";
string output = Regex.Replace(input, "mysql", "MySQL", RegexOptions.IgnoreCase);

Result is "this is MySQL"