senthil
senthil

Reputation: 1

How to remove both html tags & content,values inside the tags using regular expressions

How to remove both html tags & content,values inside the tags using regular expressions

Upvotes: 0

Views: 251

Answers (3)

Adriaan Stander
Adriaan Stander

Reputation: 166366

Have a look at some of these articles

But be aware, you are opening yourself for a whole world of hurt.

Parsing Html The Cthulhu Way

Upvotes: 3

tangens
tangens

Reputation: 39733

You should use an html parser for this, e.g. htmlcleaner

Upvotes: 0

llamaoo7
llamaoo7

Reputation: 4331

As generic as your question is, you will probably only get generic answers:

Use an HTML DOM parser.

Upvotes: 0

Related Questions