in reply to s/// don't delete matching phrase

The suggestion I got when I first asked a similar question was to not use Regex and use a HTML/XML parser.

Replies are listed 'Best First'.
Re^2: s/// don't delete matching phrase
by choroba (Cardinal) on Oct 29, 2014 at 12:54 UTC
    This is good advice. For example, in xsh, you can do just
    open :F html file.html ; echo //text() ;
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ