50

Anyone who has stopped for more than 5 seconds in the regex tag knows of this "dubious" answer:

Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp.

I know that it's funny. I know this answer will never be deleted because it has historical value.

But, whether you love this answer or hate it, whether you think it's funny or vitriolic, the plain truth is that it doesn't represent a good answer:

For that reason alone, I think it would be best if fellow SO users voluntarily stopped linking to it via comments in favor of more relevant, higher-quality answers.

I am not asking that this link be banned in any way, shape or form.

I know that users are constantly posting these questions and they get annoying. We already have approved ways of dealing with that: downvote, close (not constructive, too localized, duplicate) and delete. If your goal in linking to that answer is to indicate to the OP that the question shouldn't have been asked, then perhaps you would consider sticking to downvoting and voting to close.

There have been over 1,100 links to this question/answer since 2008 (that's nearly 2% of all questions tagged with - and that includes questions before this answer was posted). There have been nearly 150 this year alone.

In the cases I've seen, the OP was relatively new or clueless about regexes. This answer does not help them - it only contains a very weak suggestion at the end that a parser should be used (without ever actually explaining why regexes won't work - a very ineffective argument for the determined "n00b"). In my opinion, to many new users, it could easily come off as rude, caustic or snooty. I don't think that's the reputation we want for StackOverflow.

To be clear: parsing HTML with the help of regex, while possible in some regex flavors, should be highly discouraged. The cases where regex is an easier/cheaper tool than a true HTML parser are few and far between. That is not the issue... the issue is that this particular answer, at the very, very least, according to our own standards, is not a good answer.

To be clear: I am not suggesting that we hold newbies' hands. I am merely pointing out that this answer is not a good answer according to the standards published in the FAQ.

Our standards for good answers:

  • Answer the question
    Read the question carefully. What, specifically, is the question asking for? Make sure your answer provides that – or a viable alternative. The answer can be “don’t do that”, but it should also include “try this instead”. Any answer that gets the asker going in the right direction is helpful, but do try to mention any limitations, assumptions or simplifications in your answer. Brevity is acceptable, but fuller explanations are better.
    This question just barely squeaks by with a "Have you tried using an XML parser instead?" at the end. Beyond this, there was no attempt to explain the issues or the alternatives.
  • Writing style matters
    Nobody’s perfect — but answers with correct spelling, punctuation, and grammar are easier to read. They also tend to get upvoted more frequently. Remember, you can always go back and edit your answer to improve it at any time.
    The spelling and grammar are intentionally bad. While it works toward the comedic affect of the post, I don't think SO is meant to be a comedy house.
  • Always be polite and have fun
    It’s fine to disagree and express concern, but please be civil. There’s a real human being on the other end of that network connection, however misguided they may appear to be. We’re here to learn from our peers, not yell at each other.
    Please, someone, explain to me how this answer could possibly be construed as civil or polite. If I gave an answer like this to my manager, I'd probably get a reprimand.
  • You cannot do that in X because it doesn't support Y.
    There are no links to documentation (which are requested if possible) even though plenty of documentation exists.
  • This is what you're doing incorrectly. [Explain]. Here's how it should be done [code].
    This answer does not attempt to explain the issue or to provide the correct approach.
  • Try this: [code]
    Again, no attempt to explain
  • This is the problem: [Explain]. In a related answer/blog post, I/they discuss blah [link] which might be of interest.
    Again, no attempt at explanation.

There are plenty of good answers which already exist. Not the least of which is this one (Regular expression pattern not matching anywhere in string) which has answers that actually answer the question and then explain, in exceptional detail, why this path is not ideal in most cases.

As noted in the comments/answers below, there is an especially good resource question available for PHP-specific HTML parsing questions: How do you parse and process HTML/XML in PHP?

47
  • 116
    +∞ while the rant itself is humorous, links to it are used in an unhelpful slapdown manner. And I delete them whenever I see them.
    – Gordon Mod
    Commented May 29, 2013 at 15:27
  • 15
    "This answer does not help them - it comes off as rude, caustic and snooty." It does? Maybe we have different standards on that. Despite that I agree that it is not a good answer in the sense we would like, it is far better from a simple "Don't do it". And if there is a better answer available, why not link to that? Also, are you aware that, despite this being Meta and we all are beings with unlimited power, we can not stop people from doing that except for deleting that answer? I'm 100% positive that nobody on SE will put an answer on the blacklist for comments.
    – Bobby
    Commented May 29, 2013 at 15:28
  • 6
    Listen, don't mention the Cthulhu post. I mentioned it once, but I think I got away with it. Also, isn't it Zalgo, not Cthulhu?
    – JohnB
    Commented May 29, 2013 at 15:37
  • 5
    @Cyborgx37, I wasn't being that serious. Commented May 29, 2013 at 15:44
  • 3
    @Servy - For that reason I carefully avoided saying it's a bad answer. But it's not a good answer either, and there are much, much better readily ones available. In fact, the one I linked to even had the intended affect!
    – JDB
    Commented May 29, 2013 at 15:50
  • 5
    @Cyborgx37 I agree that it isn't a great answer for the reasons you mentioned, and neither regex nor HTML are strong pointsd for me so I won't weigh in on the technical merits of the answer, but from discussions I've seen, it is a common XY problem that inexperienced programmers try to use for parsing HTML, and sometimes the humor and/or shock value of such an answer has a more lasting impact on someone than a short easy to read answer. Commented May 29, 2013 at 16:12
  • 13
    @Cyborgx37 I would almost say that tchrist's post isn't an answer either, it's mostly self promotion and then a perl program, that uses regex true, that is actually a parser in and of itself. It, in no way, actually demonstrates that you can use a regular expression for anything beyond a very small simple subset of html. So the rant still stands that you CAN'T use just a regex to parse html, it CAN'T be done. You can use them as part of a parser but it still takes a parser! to consume html beyond any type of small subset.
    – Ryan
    Commented May 29, 2013 at 16:13
  • 3
    @ryan you might want to read the comments to stackoverflow.com/questions/4245008/…. tchrist makes a lot of good points there. I stopped linking to the rant afterwards because I realized the rant is not giving an accurate picture. The reasons not to use Regex on HTML is not that HTML is not regular.
    – Gordon Mod
    Commented May 29, 2013 at 16:16
  • 4
    @Gordon I didn't say that you couldn't do it because HTML isn't regular, I also would argue with tchrist that what he is using and calling 'modern regular expressions' don't even qualify as regular expressions and should be named something like perl expressions. tchrist is smart, and he is a leading authority on perl but he is also pompous in the extreme. I'm sorry but I have to disagree with tchrist and you. In none of the links here or in your discussion with him, did he show me any evidence that a regex by its self can parse html.
    – Ryan
    Commented May 29, 2013 at 16:31
  • 2
    @ryan I didn't link it to convince you of it. I linked it because tchrist himself says it doesn't matter. Quoting: Now I agree; it doesn’t matter whether regexes can do something given the availability of alternatives that are shorter, easier, and more robust. - and that's the whole problem with the rant. It gives the wrong reasons for not parsing Regex with HTML.
    – Gordon Mod
    Commented May 29, 2013 at 16:36
  • 8
    Why does this question comes up over and over again? And why does it need to be answered over and over again? Just vote to close the question as duplicate. And link to your favorite answer instead. Commented May 29, 2013 at 18:43
  • 2
    @UphillLuge - See "I know that users are constantly posting these questions and they get annoying. We already have approved ways of dealing with that: downvote, close (not constructive, too localized, duplicate) and delete."
    – JDB
    Commented May 29, 2013 at 18:44
  • 3
    If I could downvote this more than once, I'd spend at least ten minutes doing nothing but clicking on the downvote arrow over and over and over again.
    – Jack Maney
    Commented Jun 27, 2013 at 19:36
  • 6
    @Gordon As a non-helpful joke-answer, I believe the Zalgo answer should be deleted. Furthermore, linking to it is obnoxious and rude. Infinitely better to link to an answer that actually provides a working answer than to just flip somebody off with a joke. Zalgo delenda est.
    – tchrist
    Commented Jun 6, 2014 at 22:58
  • 3
    I seem to recall that Back In The Day (tm) the first two rules of Usenet were: 1: Do not be overly annoying, and 2: Do not be overly annoyed. Words to live by... Commented Feb 11, 2016 at 12:18

5 Answers 5

45

I spend some time going through the list of answers in that question, and find that most of the answers don't offer a way out. In my opinion, a good explanation on why regex should not be used to parse HTML, with some library recommendation at the end makes a good reference to link to whenever someone tries to parse HTML with regex.

Here are my opinion on some of the top voted answers:

  • The Cthulhu answer explains somewhat about why Perl (which has recursive regex) cannot parse HTML, but a bit lacking in details. The second half of the answer doesn't contain any useful information. The key point for this answer is mostly the last sentence that recommend the use of HTML parser instead of using regular expression. However, there is no information on the recommended tools or libraries to manipulate HTML.

  • The next answer is acceptable, in the sense that it tells the limit on the use case of regex on parsing HTML. But no information on how to do it properly.

  • The 3rd most voted answer uses the reasoning with theoretical regular expression, but regular expression in programming languages are usually more powerful than theoretical regular expression. The argument is a bit crooked at this point.

  • The 4th most voted answer attempts to answer the question with regex. No comment.

  • The 5th most voted answer is not an answer, IMO. I think it should be deleted.

  • The 6th most voted answer contains a chunk of deflated and base-64 encoded text, which is quite annoying to get the content out of. I think the author does this so no one can use copy and paste the solution, but it also hides away the regex so that no one can check it.

  • Next answer suggests a library for PHP.

  • Next answer is most likely not an answer, since it suggests Turing.sed, which is an emulator for a Turing machine.

  • Next answer is an example in PHP with DOMDocument.

  • Next answer is an example in .NET with regex and open/closing group with some assumption on input HTML. No comment on accuracy.

  • Next answer is another regex solution, with no clear assumption.

  • Next is a library recommendation for .NET (no example).

  • An answer a bit below is a comparison between the libraries in PHP.

  • Beyond are a bunch of regex answers and library recommendation (without example). And the graveyard of deleted answers including some link-only library recommendation and spams.

In my opinion, a resource question with a regularly maintained list of library for HTML parsing (like the list of books in C++ tag) is much more useful. Or even a resource question with a list of links to SO questions with examples of parsing HTML in particular language is also useful.

Currently, as Gordon has commented, the has a reference question for parsing HTML: How do you parse and process HTML/XML in PHP?. This serves as an excellent example of resource question as I mentioned above, and is something that is more useful for the asker.

13
  • I like the idea of a resource question, but are you aware of one that exists? Could such a question even exist on the site without being closed?
    – JDB
    Commented May 29, 2013 at 16:35
  • @Cyborgx37: I think resource questions are acceptable. However, 1) it must be some sort of resource that is going to be commonly used (which is the case here) 2) it should be regularly maintained.
    – nhahtdh
    Commented May 29, 2013 at 16:36
  • 9
    We have that for PHP: stackoverflow.com/questions/3577641/… and it includes a section about Regex with reasonable explanation why you likely don't want to use them.
    – Gordon Mod
    Commented May 29, 2013 at 16:38
  • @Gordon: That is something what I hope people would link to (for PHP tag), and something that I would like to see for other tags. The Cthulhu answer is funny, but it doesn't tell when regex should/should not be used and what are the libraries suitable for the task.
    – nhahtdh
    Commented May 29, 2013 at 16:58
  • 3
    @nhahtdh actually, that's why I wrote it ;)
    – Gordon Mod
    Commented May 29, 2013 at 17:00
  • 2
    "there is no information on the recommended tools or libraries to manipulate HTML" - because tool recommendations are forbidden perhaps? Commented Mar 1, 2014 at 22:22
  • 2
    @DanDascalescu: Tool recommendation questions are closed right away. However, if the question asks "how to parse", it is fine for the answer to be a library recommendation.
    – nhahtdh
    Commented Mar 2, 2014 at 4:43
  • 1
    "However, there is no information on the recommended tools or libraries to manipulate HTML." Because recommended tools is against the rules... The rules are against the rules. Another reason I rarely come here anymore and ask my questions to respectable communities in open discussion format. Commented Apr 9, 2015 at 4:24
  • @LeeLouviere: Read the comment right above yours. And we don't like a page full of links to tools. They are useless. Rather, something like what the link Gordon posted is what I'm thinking about.
    – nhahtdh
    Commented Apr 9, 2015 at 4:26
  • 2
    @nhahtdh I can promise you I've seen questions / answers closed looking for or recommending libraries. Tool/library are quite synonymous for the same reasons. The information becomes outdated. Now if the question is how a certain tool or library method behaves because it is not behaving as expected, that's not outdated because the question is tied to a certain point in the lifespan/context of that tool or library. But recommendations are never tied to lifespan or context. Commented Apr 9, 2015 at 5:47
  • @LeeLouviere: I'm not sure what you want to add to this discussion. Sure, tool/library questions are not welcomed, since they attracts low quality answers and becomes outdated fast. However, exceptions are given to questions which are frequently maintained by the community. Example can be seen in C++ books question (currently wiki-lock, only allow edit on answers), and the above question. If you have a better solution to teach people how to parse HTML properly, feel free to suggest in an answer. This is the best solution I can come up with.
    – nhahtdh
    Commented Apr 9, 2015 at 6:10
  • 1
    «why regex should not be used to parse HTML» Again, we're not talking about the fact that you should not parse HTML with regex, the fact is that you cannot parse a context-free language with tools for dealing with regular languages. You can't write a parser with regex, you can use them to write a lexer, which is a different tool. The "a bit crooked" argument is actually correct. Regex are very clearly defined. If programming languages use the wrong term, that's another story. If you buy a "router" which has an integrated firewall, you are not buying a router (Network level appliance). Commented Nov 22, 2015 at 14:01
  • 1
    The author of the deflated regex did so because it's too large to fit an answer otherwise. Since this is the smallest regex that can actually do it and it doesn't fit without shenanigans, it's not that bad a choice. OP can actually use it because he was helpful enough to provide the surrounding code.
    – Joshua
    Commented Jun 10, 2019 at 14:22
95

First off, comments are not answers. You should not judge them the same way you would an answer. I see absolutely nothing wrong leaving a link to that post on related questions in the comments. It's related, relevant, and imo worth the read.

Second, I find that post actually does have value to a newbie because it makes it clear, in no uncertain terms, that regex parsers are not a good idea. You can find out why by reading dry boring posts about the gory details, but that post is an entertaining way to make it clear in a way that words can't describe, that regex parsers are bad and will make you go insane.

And last of all, the other answers in that post are quite useful for anyone interested in writing an HTML parser using regex.

So no, don't stop linking to it if you come across a situation where it would apply :)

(Also, I think that answer is a true work of art that shows off the creativity and humor of the SE community, which I would think is something we'd want to broadcast, not suppress and/or delete)

17
  • 12
    There are other better answers out there to link to, IMO.
    – nhahtdh
    Commented May 29, 2013 at 16:52
  • 12
    @nhahtdh Then link to those answers. Nobody's saying that you must link to this answer, only that it shouldn't be prohibited/discouraged.
    – Servy
    Commented May 29, 2013 at 17:10
  • 5
    @Servy: People usually don't link to those answers. That's the problem here. Either we improve the current Cthulhu answer, or make a resource question.
    – nhahtdh
    Commented May 29, 2013 at 17:12
  • 7
    Rachel, what's the point of linking to an answer in the comments? If the answer isn't good, why would we want people to link to it? This answer isn't good by our own standards, so why would we not discourage people from linking to it? I'm not proposing a ban, but I think linking to it is less than helpful in nearly all situations.
    – JDB
    Commented May 29, 2013 at 17:16
  • 2
    @Servy - can we update the Zalgo answer to include links to more appropriate answers listing tools and technologies available to users? Maybe a discussion of when and how to use regex vs a parser? The would at least make all of the existing links just a tad more helpful.
    – JDB
    Commented May 29, 2013 at 17:19
  • 4
    @Cyborgx37 and nhahtdh, I cannot take any suggestion that the Zalgo answer be modified with any seriousness. Just link to something else if you do not like it. It's not that hard. Commented May 29, 2013 at 17:22
  • @user414076: Well, I hope people would come to meta and understand why the post is fun, but not that helpful to link to. The thing is that people usually only links to the Zalgo answer only, which makes it the only thing the asker read.
    – nhahtdh
    Commented May 29, 2013 at 17:28
  • 3
    @Cyborgx37 I frequently leave links to other answers when I think the OP would appreciate reading them and benefit from the content based on their question, when the linked answer doesn't completely answer the OP's question, or when I don't have time to write up a full answer myself, but still want to point them in the right direction. In the case of this post, I would link to it if I think the OP or others with the same question would appreciate reading the answer, and could benefit from it in some way related to their question.
    – Rachel
    Commented May 29, 2013 at 17:28
  • 3
    @nhahtdh, it is exceptionally helpful and accomplishing its purpose. Further, that question has more than 730,000 views. Obviously, someone finds it useful. Leave it alone. It is beyond Stack Overflow now, it belongs to the internet. Commented May 29, 2013 at 17:30
  • 1
    @user414076: I don't suggest to delete it (and I never do), but I agree with Cyborgx37 to stop linking to it, or link to it (to convince the OP not to use regex), plus some other helpful way out (library).
    – nhahtdh
    Commented May 29, 2013 at 17:32
  • 4
    @Rachel - You exercise more care than most of the cases where I've seen this used. Look at the list of comments in this SEDE query and consider how many are actually useful: data.stackexchange.com/stackoverflow/query/116837. In many cases I've seen, these were "drive-by" comments where the commentor made no attempt to understand what was being asked. In some cases, regex was actually an appropriate solution.
    – JDB
    Commented May 29, 2013 at 17:39
  • 5
    @Cyborgx37 I can't speak for everyone, but I think banning the use of a specific link that isn't actively harmful, and is possibly even helpful in many cases, is a bad idea :)
    – Rachel
    Commented May 29, 2013 at 17:47
  • 6
    @Rachel - I don't know why people think I've suggested banning it. I've stated over and over again that I'm not trying to have it banned. I'm just asking people not to use it in favor of higher quality answers.
    – JDB
    Commented May 29, 2013 at 17:53
  • 2
    "creativity and humor of the SE community, which I would think is something we'd want to broadcast" - that might have been the case back in the golden days, but now it surely is no longer. Commented Mar 1, 2014 at 22:35
  • 2
    @DanDascalescu Thank you for that archive link, I remembered seeing it before but had not saved it. Quality of its contents is pretty random, bit it is filled with massively useful information that is extremely disappointing to have been deleted...
    – Izkata
    Commented Jul 22, 2014 at 3:38
11

"There are plenty of good answers which already exist. Not the least of which is this one (https://stackoverflow.com/q/4231382/211627) which has answers that actually answer the question and then explain, in exceptional detail, why this path is not ideal in most cases."

I'd just like to say that that's actually a pretty awful question to link to — out of the six current answers, only one is actually valid and useful, and it's pretty far down the page:

  • The accepted answer is simply wrong. It tries to solve a very small subset of the general HTML parsing problem, and it still fails to do it. See the comments to that answer for some examples of valid inputs that will break it.

  • Below that, tchrist's enormous and hugely upvoted answer is extremely impressive — but hardly more useful than the Zalgo rant to someone who just actually wants to parse some HTML. Indeed, Tom admits that himself in a comment:

    "That was kinda my point, actually. I wanted to show how hard it is. – tchrist Nov 20 '10 at 19:38"

  • The third answer by meder is, IMO, the only valid and useful one. It doesn't actually contain a single regexp, but rather explains how to properly parse and extract data from HTML using DOMDocument and DOMXpath in PHP. Of course, it would be even better to link to the reference question on the subject.

  • David's answer basically just consists of a link to the REX paper by Robert D. Cameron. It's actually a pretty nice paper, and it does contain code for a usable and reasonably compact regexp-based XML parser in the appendices. Alas, REX is an XML parser, not an HTML parser, and it cannot cope with various features (like unquoted attribute values) that are legal in HTML but not in XML.

  • The remaining two answers are broken in similar ways as the accepted one. There's really nothing to recommend in either of them.

2
  • 2
    If you prefer a different answer, that's up to you. It doesn't change the purpose of the post, though. (Personally, if an OP seems dead-set on using rexeges, I like the tchrist post because it demonstrates just what is involved in building a full-on parser.)
    – JDB
    Commented Jan 18, 2014 at 16:29
  • 4
    All the linking to the locked post is doing more harm than good, and should be banned: Zalgo delenda est.
    – tchrist
    Commented Jun 6, 2014 at 23:05
3

Some of the historical context is missing for that question. There are certain restricted subsets of HTML and use cases where regex will do. This always made it difficult to work out when you needed what. You can also parse HTML with algorithms involving multiple chunks of regex. While you're using regex, you're also filling in using the logic and semantics of your programming languages such as loops, recursion, stacks, variables, etc.

A prevailing problem is that for a long time as standard you didn't get parsers that were the same as those in the browser. Although many people would say to just use this or that it would be hard to ensure results would match that of browsers. A very common case would be when the attempt was made to switch everything over to full strict XML with the common suggestion to then use an XML parser.

Things have improved a lot but in the historical context you could get this question then suggest around half a dozen parsers for a given language but find it very difficult to be sure that any of those fully parallel the parsing the browser does in all cases.

Such libraries haven't always had such obvious interfaces either that make it as simple as it would seem with regex to take a string and for example extract a list of specific tags. Although this is also an improving front it's something that's often over looked.

One of the underlying causes for this situation to arise is that there have been always easy answers but its never been historically easy to give good thorough answers because there's rarely been a stable definition of HTML.

For the longest time the only true HTML parsing software has been browsers and they typically have been applications rather than libraries. Many people also forget that HTML is SGML based, not XML based.

For the simpler use cases it can be easier to prescribe something specifically that works and in some cases that can even be regular expression. It should be respected that for generic solutions it has always been hard to give a generic answer that'll work in general. That's part of why you have don't use regex but people struggle to propose what to use instead (for more reasons than there being endless XML/HTML libs but regex being fairly standard, true HTML parsers have often been few and far between).

This isn't a problem when you're on a webpage and you open the developer tools then use the inbuilt representation of the parsed page. This all happens on the backend when those libraries aren't available. In the real world, people write HTML for the frontend or for that application and not for backend applications such as python, etc. The only good generic solution is a full port of DOM from whatever the most common browser is.

For your own HTML specifically rather than others, you can rely on something simpler if you intend to be consistent and not have errors in your HTML.

1

I think it would be best if fellow SO users stopped linking to it via comments.

If I understand correctly, your reasoning is similar to one that justified LMGTFY and WHYT bans:

Both bans were intended to stop massive misuse of references to particular (otherwise helpful) resources.

If you want something like that, consider providing data to verify that amount of misuse is sufficient to justify ban. As an example, WHYT ban request was supported by SEDE queries demonstrating the usage of problematic references.


Note, as opposed to fully general LMGTFY and WHYT references, the one you are talking about might turn out specific to particular tag(s) (?), you might want to take this into account.

In particular, I think it would be reasonable to expect tag-specific ban request to be supported by data showing that

  1. problematic references represent a substantial fraction of comments in target tag(s)
  2. affected tag(s) in turn, represent a substantial (popular, active) fraction of Stack Overflow questions
11
  • 5
    The question is in the spirit of "Could we please be a bit nicer to new users?". This is not a feature request, and I did support my claims with a SEDE query. (See the link on 1,100 links)
    – JDB
    Commented May 29, 2013 at 16:41
  • 1
    @Cyborgx37 as far as I understand, LMGTFY and WHYT references in comments were banned for similar reasons (not being helpful for new users). As for 1,100 links, the way you present these, it appears spread over 5,000,000 SO questions, making one feel that the problem is very very minor - I'd say one needs some more focused analysis to make it look worth considering
    – gnat
    Commented May 29, 2013 at 16:47
  • 9
    LMGTFY and "What have you tried" were often seen as comments by drive-by users who didn't really have an interest in helping out the user, and who only wanted to point out that the user was stupid by missing the obvious. They created an unfriendly atmosphere on SO, which I believe is why they got banned. Links the regex rant are not really the same.
    – Rachel
    Commented May 29, 2013 at 16:51
  • 3
    @Gnat - Again, though, I'm not asking for a ban. Regex is not the most active tag and any automated solution probably isn't worth the time, which is why this is not a feature request. It's just a discussion. I'm getting tired of hashing this out in question comments.
    – JDB
    Commented May 29, 2013 at 16:53
  • @Cyborgx37: I think you can try updating the question with the ID of the question also, since there are people who link to the question instead of the answer.
    – nhahtdh
    Commented May 29, 2013 at 16:54
  • 2
    Probably worth noting that WHYT links aren't banned entirely; just the sort of content-free comments with WHYT links that were proliferating irresponsibly.
    – Shog9
    Commented May 29, 2013 at 17:09
  • 2
    @gnat Even though it might feel like it sometimes, there aren't 5,000,000 regex questions. Looks like a more modest ~60,000 that at least have the regex tag. It's unlikely for someone to post the regex answer on a non-regex question, so 1100/60000 is a better comparison.
    – Troyen
    Commented May 29, 2013 at 17:53
  • 1
    @gnat - My revised query shows 1.955%.
    – JDB
    Commented May 29, 2013 at 18:30
  • 1
    @Cyborgx37 I would add that regex questions look quite popular: over 7,500 have more than 1K views, and about 4,000 of these have over 2K views, these sum up to about 10,000,000 views total. 2% of this make 500,000 views - that would estimate audience of the comments you ask about. Not as accurate as it could be with SEDE though - if "Ctulhu" references tend to be in lower viewed questions, things could look less impressive
    – gnat
    Commented May 29, 2013 at 18:40
  • 5
    Yes, linking to it is both unhelpful and rude. Zalgo delenda est.
    – tchrist
    Commented Jun 6, 2014 at 23:05
  • Never say never. LMGTFY can be used to show what range of options there are, even that there are none, too many, hard to find or none that are good. Even for valid use cases it has a problem that search results can change dramatically one day to the next.
    – jgmjgm
    Commented Oct 13, 2019 at 19:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .