News for hackers. Stuff that matters.
Re:A proof that Unix utility sed is Turing complete by mirimir on Friday February 15, 2019 @08:43AM (#19170821)
Isn't it more or less a cliche that using sed etc for stripping HTML tags is unreliable and potentially hazardous?

I've tried it. I could get it to apparently "work". But then I'd get some input that hosed it. Now I just use "w3m -dump". I mean, it's a browser.

Re:A proof that Unix utility sed is Turing complete by noxToken on Friday February 15, 2019 @09:36AM (#19171198)
There's the classic Stack Overflow answer[0] about matching HTML tags. If you have a small subset of HTML, it can work out pretty well.

[0]: https://stackoverflow.com/questions/1732348/regex-match-open...

Re:A proof that Unix utility sed is Turing complete by mirimir on Friday February 15, 2019 @10:21AM (#19171565)
Thanks. That's what I was thinking of. Classic "this parrot is dead" riff.
Re:A proof that Unix utility sed is Turing complete by mannykannot on Friday February 15, 2019 @09:34AM (#19171187)
The unreliability follows from it being "basically unreadable", which leads to it probably not doing what you intend. Whether it is hazardous depends on what you use it for.