I allow users to enter a regular expression to match IP addresses, for doing an IP filtration in a related system. I would like to validate if the entered regular expression
As long as you catch very specific exceptions, just do the try/catch.
Exceptions are not evil if used correctly.