3 ms·
> The easy approach would be to run a string replacement over the build output, but this is far too destructive and error-prone. It would also stop me from writ
by ezekiel68 2y ago
> The easy approach would be to run a string replacement over the build output, but this is far too destructive and error-prone. It would also stop me from writing this post!
Tell me you refuse to learn awk/sed (even Windows compatible versions such as from Git Bash, WSL, or Cygwin) without telling me you refuse to learn awk/sed.
- Etheryte 2y agoThis isn't a solution, because then you'd run into problems the moment those keywords are used in a different context, for example in this blog post describing the bug. Any language you may fancy has a parser readily available these days, there's no reason not to use it.
- lloydatkinson 2y agoThat is exactly why I used an actual parser not some glorified regex. Thank for you rebutting their ridicilous remark. I even literally said in their quote. Why anyone would think a glorified regex is a solution to updating deeply nested HTML elements is beyond me, is the famous "HTML regex"[1] answer not enough? As bad a sugesting Chrome should just be a wrapper for sed/awk. [1]: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags https://stackoverflow.com/questions/1732348/regex-match-open...
- GrantMoyer 2y agoYou've invoked the canonical rant: https://stackoverflow.com/a/1732454/2640937 https://stackoverflow.com/a/1732454/2640937
- eric_h 2y agoIt's been a while since that one's crossed my browser. This is the first time I've noticed the moderator's note at the bottom: "Moderator's Note This post is locked to prevent inappropriate edits to its content. The post looks exactly as it is supposed to look - there are no problems with its content. Please do not flag it for our attention."
- hombre_fatal 2y agoIf you're using a meme to make a point, you should probably just make your point and see if your comment is worthwhile once it's not relying on a rhetorical gimmick. I'll try: "You could've used awk/sed". Great comment?