I propose three general curation philosophies as a simplification to help discuss the question at hand:
- Questions should aim to be generalized and have value for a reasonably large audience of users on the site. The ideal question is a canonical/wiki/FAQ for maximum value, and questions that are too specific to a single asker's needs should be downvoted/closed/deleted. Helping an asker solve their specific problem is unimportant, except for the extent to which it helps the community.
- Questions can be fairly single-user specific. As long as they're reasonably well-researched, reasonably novel, clear and answerable, they're on topic, even if the problem is unique to one user, or a few users.
- Virtually everything is on topic. The SO community should accept just about any programming question. If a prospective answerer can't help or finds an issue with a question, leave it alone instead of taking curation action.
I'm squarely in camp #2 (I'm not going to spend time discussing camp #3--the debate in this thread is between camps #1 and #2, but it's worth pointing out because some camp #2 can be mistakenly lumped in with camp #3).
There's nothing in our guidelines that says a question needs to be, or attempt to be, popular or generalized to any extent for it to be on topic. If it happens to become a canonical naturally (mainly through SEO luck), that's great, and we should strive to steer things towards generality and helping future visitors when possible. But general solutions often come from specific problems, and we need a specific, reproducible problem to make an issue concrete and answerable.
If a topic is a duplicate, but the asker has made a reasonable attempt to find the duplicate, or there is a reasonable variation on the fundamental question, I don't see a problem with erring on the side of leaving a question up, assuming it's on topic in all other aspects. Perhaps a duplicate vote may be necessary, but not moderator deletion.
Camp #1 users tend to delete and dupe-hammer any question that bears passing resemblance to a canonical thread, or conceivably could have been found elsewhere, or if the question is too specific to one user's problem. The tag winds up devolving into a handful of canonical posts that bear little relevance to anyone's specific issue.
This phenomenon has been discussed extensively in threads like What should we do when one person tries to delete every duplicate? so I won't rehash the issues with this style of curation here, but overaggressive curation to this extent is harmful to the community.
Now, the question we're discussing in this thread seems to fall more or less in camp #2. It's almost certainly not going to become canonical (in general, it's hard to predict which ones will), but it's a practical, answerable programming problem with a reproducible attempt, which seems on topic to me. I've found solutions to deep, annoying issues in seldom-used technologies solved by threads that are 6 years old and have 30 views. If those had been deleted because they never become popular (impossible in small tags like, say, matter.js), I'd probably never have found an answer.
My main issue with the question is that, like many regex questions, the scope of valid inputs is unclear. OP presents
CLog_DMT_HPCC2_IWHT91731695_242_AFT1_2019-05-02T07.51.43
as the first input to match, but then presents
CLOB_ABCD_6KW_SYSTEM_609-784_IWHT91831863_197_ACB_01_2019-05-02T07.03.27
as a non-working variant. But what exactly is the specification here? Does the answer also need to match
CLOT_XY%X_!@#$_S%%$$$$_64$09-@@_IWHT91831863_197_ACB_01_2019-05-02T07.03.27
next? OP should clarify exactly what the set of valid inputs is to avoid an endless slope of "OK, thanks, but now match X input I didn't tell you about yet" follow-ups which I've seen many times back in my regex days. (Ironically, I left the tag because most of my answers were deleted before they had a chance to be useful to a wider audience beyond the asker.)
The title can also be improved. It's too generic, although it's hard to come up with a better one based on the question content. Maybe if OP provided more context, like "Regex pattern to match nginx logs" (I'm making that up, it's not an nginx log, but you get the idea), the additional context might make it a commonly-searched question, or help answerers determine that it's really an XY problem and there may be a more direct solution than a regex.
I can see the question being closed as "unclear what you're asking", and follow-up comments being posted to address these medium-level concerns, but a moderator deletion on the grounds of "not useful to the community" seems like overreach.
Since the deletion, the question has been reopened, then closed as a dupe. This is a better outcome than deletion, but it's closed as a dupe of an overly-broad, FAQ/Wiki-style canonical that OP or future visitors to the thread aren't likely to have the context to be able to adapt to their particular scenario, or even be expected to find in advance. They'd have to know what their problem is to be able to search for something like "Greedy vs. Reluctant vs. Possessive Qualifiers".