Removing All XML Tags in a Document

Saint Michael

Golden Member
Aug 4, 2007
1,877
1
0
But keeping the text in between the tags. Honestly it blows my mind that I couldn't find something within 20 seconds of looking this up on Google, even though it seems like such a basic thing. Anyway, anyone know a fast, free way to do this? I could write an app for myself, but I really don't feel like downloading a C++ compiler and going through the coding process. Much appreciated.
 

ppdes

Senior member
May 16, 2004
739
0
0
Trivial for us *nix users:
sed 's/<[^>]*>//g'

Although if I had to handle multi-line tags I might have to step up to a couple lines of awk or perl.

There are plenty of text editors for Windows that can do the same sort of regular expression search and replace, btw, like TextPad and whatnot.