Today I have asked a question here on PPCG.
The question consisted in a set of wildcards and groups which one should make a string that matches it.
The question can be found here: String generator based on a wildcard
But it was immediately closed by another used as being a duplicate of the following question: Regex in reverse - decompose regular expressions.
Although the questions seem similar in the title, their content is WAY different!
One is actually to, receive as input, a regex and then generate a string that matches it.
The whole specification is found on the question.
My question is to generate a string that matches some features of a regex, but a regex will be considered invalid input in most of the cases.
Evaluating the wildcard as a regex, using my specification, would (in some cases) generate meaningless matches.
None of the answers will fit into my question, with most of the possible wildcards (like ?[def]{2}
which would, for example, generate add
while it is an improper regex).
Most of those answers also generate characters outside the expected range of a-z
, A-Z
and 0-9
(symbols are optional and are rewarded with bonus).
To the core of this: Is my challenge really THAT close to be considered duplicate?
It wasn't intentional and I wasn't aware of the other linked question, which was 8 month ago.
Outside of the scope, I have seen questions being reopened because the winning criteria changed, but the whole question itself was much more similar.
I might be wrong about it, my memory isn't 100% perfect.