Stripping (partially) HTML tags

Not being a regular expression guru is a sometime frustrating ;-)

Well this time I think I figured out how to strip the tags from an HTML file, but keeping the <b> <i> !

Quite simple
"<[^>]*>" remove all the tags

"(<[c-kC-K][j-zJ-Z][^>]*>)" do the same but keep the <b> and the <i>

Surely somebody has a simpler solution.

 

2 Comments

Comments have been disabled for this content.