Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Remove BOLD formatting from html
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var boldRegex = new Regex(@"</?(\s|\t|\n)*strong((\s|\t|\n).*?)*?>|</?(\s|\t|\n)*b((\s|\t|\n).*?)*?>|font-weight(\s|\t|\n)*:(\s|\t|\n)*?bold"); string html="hello book<br/>world <strong>ddd</strong> <b>ok my book</ b >"; html = boldRegex.Replace(html, ""); Console.WriteLine(html); } } }
run
|
edit
|
history
|
help
1
String Factorial Sorter
Ligma Bofa Joe
DAY !
character occurrence in the given string
Testing bitwise stuff
852
Switch
asxs sxsd
newstring vs regex
N