For example, if I have the following strings:
99%89 (should match)
99%? (should match)
?%99 (should match)
?%? (should not match)
?%99%99 (should match)
99%99%99%? (should match)
essentially the first or second element can be a ? or a number, but both elements cannot be ?. I tried thinking of something like:
[0-9]*|[?](?!\?)[%][0-9]*|[?]
But this does not yield the correct answer, any help would be appreciated