x Did you like it? Well, then please consider making a donation :)

Category - Strings, Text

Remove all non alphanumeric characters from a string except dash & space symbol

Replace this Regex with an empty string + Compiled flag

Type: replace, Date: 7/12/2015 3:52:40 PMAuthor: stackoverflow

Simple Regex.Split sample - remove digits

User \d+ for remove digits and \D+ for remove text.

Type: split, Date: 3/30/2015 12:45:18 AMAuthor: admin

Simple Regex.Replace sample - add for word gmail.com

From MSDN: Regex.Replace processes text replacements. It handles simple replacements and more complex ones.

Type: replace, Date: 3/30/2015 12:39:02 AMAuthor: admin