Currently I'm working on a regular expression wrote in PCRE2 to check a range of IP address
^(10\.).+|(172\.16).+|(192\.168).+
I need the regular expression to check also if in the string I can find any ip between 172.16.X.X - 172.31.X.X
The current regex it's working but not checking this range specifically ... it's capturing everything that's 172.16.X.X
I tried ^(10\.).+|(172\.[16-31]).+|(192\.168).+
but It doesn't work in this way.
Also I'm using https://regex101.com/ to debug this expression ... is it a good way to check if it's right?