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
Post a Comment