SO,
I\'m looking for a solution about the problem - how to convert integer interval to regex. Suppose I have two numbers, A and B. Both of
Why use regex in this situation?
I would just do this:
boolean isBetween = num > A && num < B;
(Code written in Java)
Far easier, a regex like what you're asking for could be huge and using it in this situation would be pointless and inefficient.
Good Luck.
If you truly insist on using RegEx for this task, see this website, run the regex with verbose mode on and it will explain to you how the author's RegEx works.