Currently most* of the questions in the regex have the following form:
I want to match 3 numbers, followed by
fooand 2 letters. How can I get the number?
Such questions can be easily translated into a regex by looking up how to match numbers, literals, letters:
And the answers are just that: a piece of code. Nothing more. No explanation how this was written, 3 identical answers in a few minutes, and a few upvotes for that low quality.
I believe that such kinds of questions should be closed, but in a way that tells the op how to write regular expressions them self.
So I suggest that we create a canonical regex question with the basics rules, and explain how to apply them. Then close all new (and old) regex questions that match this pattern as duplicate of this new one.