Escape special characters in RegEx expression

By [)ia6l0 iii

You can escape special characters in RegEx expression using RegEx.Escape method.

E.g string freeText= Regex.Escape("sentence with special characters");

Related FAQs

C# 4.0 provides us a new type of generics - Tuples
You can truncate the file paths using the Shell LightWeight library.
The IndexOf method in C# is case -sensitive. However, you can use the CompareInto class to make it insensitive to case.
Use the Environment class to get important and user-specific properties like the User Profile folder.
Use the following code snippet to download an image from an URL.
Extension method to get the start of a day
Escape special characters in RegEx expression  (1465 Views)