- string underlineCss = "'" + "text-decoration: underline;" + "'";
- var underlineSpan = @" + underlineCss.Replace("'", "\"") + ">(.*?)";
- var underlineRegex = new Regex(underlineSpan, RegexOptions.Compiled);
- content = underlineRegex.Replace(content, "$1");
How to create regex in allow anything content using C# ?
Regex : (.*?)
this regex not allow special character and space. so how any content allow in a-z A-z 0-9 special character and space and any other content allow.

Farhan AhmedPosted Jul 3, 2020, 11:17 AM