I created two textboxes with "find" and "replace with" sort of combination. I then loop through cells in a DataGridView and check to see if it contains the value in the "find" box.
This has been working fine until I tried to find and replace "(" with "" empty string
This is the string it is looking for the "(" to find and replace in: The Hitch Hikers Guide To The Galaxy (S01xE06)
string orig = (string)(dataGridView1.Rows[i].Cells["After"].Value);
string newFilename = Regex.Replace(
orig, txtRenameFrom.Text,
txtRenameTo.Text,
RegexOptions.IgnoreCase);
Then I receive this error: parsing "(" - Not enough )'s.
Regex.Replace?String.Replaceand notRegex.Replace. That is not a valid regex expression in your example which is why an exception was thrown. If you want the user to be able to search and replace via their own Regexes, then you must add a try/catch to handle an exception gracefully.