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

Regex Author - admin

Remove "Style" attribute from HTML tags

Remove all "style" attributes from HTML text.

Type: replace, Date: 8/12/2015 5:47:50 PMAuthor: admin

Splitting Link using RegEx

i want to find category from the link. I am breaking the link into array using Regex.

Type: split, Date: 3/31/2015 5:40:43 PMAuthor: admin

Replace and named capturing group example

Nearly all modern regular expression engines support numbered capturing groups and numbered backreferences. Long regular expressions with lots of groups and backreferences may be hard to read. They can be particularly difficult to maintain as adding or removing a capturing group in the middle of the regex upsets the numbers of all the groups that follow the added or removed group.

Type: replace, Date: 3/30/2015 2:35:04 AMAuthor: admin

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