s{<[a-zA-Z][^>'"]*(?:(?:'[^']*'|"[^"]*")[^>'"]*)*> # Tags |<!(?:--[^-]*(?:-[^-]+)*--\s*)*> # Comments }{" " x length $&}xeg
In reply to Re^2: Removing HTML Tags from a file
by Anonymous Monk
in thread Removing HTML Tags from a file
by agynr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |