Monday 24 October 2016

Hot Linked Questions

How do I generate all possible numbers from this regular expression? [duplicate]



I want to get a list of all possible values for a regular expression.

Input :

2W
9WW
7W0W3
where W can be any digit from 0 to 9. i.e. W = [0-9]


Output:

20,21,22,....29
900,901,...910,911,...999
...






No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...