c# - Filtering out bad characters using a Regular Expression -


I want to filter char ^ before searching something in the database. What does my regular expression look like if I want to achieve that query will ignore this signal: ^? I am working with VS2008 .NET 3.5 and C #.

You do not need a regex for this, you can just do this:

  myString = MyString.Replace ("^", "");  

Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -