See this question and all the others that get posted like it!
The regex in question is not even a valid regex!
Questions like this really are "too localized" as they will NEVER help anyone else on the internet because of their specificity. Both in content and temporal nature!
But they are also "too broad" as well, because regular expressions vary in implementation and are very well documented online and in books in general.
Places like regex101.com can answer these questions if you just type the regex into their box!
We need a close reason for things like that that will not be subject to nit picky reopen votes.
Found this after reading the link Shog9 posted.
I keep seeing decent questions closed as "too localized". I don't know what "too localized" means and frankly do not care, I just want SO to stay a nice and helpful place. Let's be nice to new users and each other and end the closing madness." - MK01
This is the attitude that is a cancer to the site, and it has plagued the community since the "Summer of Love" campaign. If this is the prevailing reason that close reason was removed and the powers that be still think it is a good thing to cater to selfishness demonstrated by users like this then so be it. It is a sad state of affairs if this is the case.
Maybe we need a different semantic.
Like a close reason that says "This is so specific to your problem that it will only help you in this single instance and no one else in the future." and let it stay open until it gets an accepted answer and then delete it and remove any votes associated with it.
Because that is what the problem is, there are so many extremely narrow questions with broad titles about regular expressions that when you search you can not find anything useful to your question that is more general and useful because of all the noise.
You click and click and click and click and they are all about "how do I match this extremely specific data that I can not even post because it is confidential, but I posted AAABBB#[:2134324-43234
which is sort of the format but not the real data.
And the answers are more likely than not just the solution with no explanation and not even formated in code blocks. That does not help the community. But then the charter of SO no longer mentions "high quality questions and answers", it pretty much promotes the opposite.
?
after it. Something like(-SNAPSHOT)?
but OP also wanted to capture-SNAPSHOT
, which requires a lazy.*?
before. That's the reason, that it's not a duplicate or at least not a duplicate of the FAQ. Also it's not too specific because it shows the effect of greediness before an optional part, which could cause unexpected behaviour in different situations. But yes, similar questions exist.