I need a regex pattern that validates IP addresses. This is easy enough to google for, but I there is a small catch. I need the last numbers to be able to accept a range. So the following input would validate.
XXX.XXX.XXX.X-Y
so something like 168.68.2.1-34
I have found patterns for normal IP addresses, but none for handling ranges.