Hi,
Well, you just need to write the regex so that it accepts only what you want.
I'm not sure what you want.
You said that you don't want 192.168.1.1 but that's a totally valid IP address.
So I understand that you don't want local IP addresses.
But then, it means that you should also not accept 10.*.*.* nor the range 172.16.0.0 - 172.31.255.255 which are also both local IP addresses ranges, no ?
And in that case, it makes the regex quite complex and long to write.
Frankly, such complex rules with differents ranges being excluded with four different numbers should probably not be made with a regex. In that case, I would personally write a custom plugin to add my one custom type of custom fields. That way, I could have my own PHP check function and do all the tests I want easily rather than trying to cram everything into one regex. That way, I could also prevent impossible IP addresses like 0.0.0.0 or 123.123.123.0 etc. Because I don't see a way to have a regex handling all these restrictions.
If you want to write your own plugin for a custom field type, you can look at our Fields API:
www.hikashop.com/support/documentation/6...entation.html#fields
And at the folder plugins/hikashop/datepickerfield/datepickerfield.php which adds the "advanced date picker" field type to HikaShop when the plugin is activated.