I have a String like "[5 TO 100]%" Which I want to get matched with the help of regex
5 and 100 from this String can get changed like 5 can be range from 1 to 999 and the same goes with 100
Others will be as it is, So Basically I want to match "[num1 TO num2]%"
--EDIT--
The duplicate target meets the requirement only partially because the string has non-digit characters (alphabets and special characters like [
, ]
, and %
as well).