I have a regex to check a list of 50 ips with commas:
^(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:,? ?)){1,50}$
List Example:
10.10.10.1,127.0.0.1
Now I need to maintain a list, for example:
10.10.10.1,127.0.0.1-127.0.0.125
I'm trying to use subpatterns but nothing happened
can anyone provide a regex example for checking this line:
127.0.0.1-127.0.0.125
source
share