So here is another working solution. Rios has a good one as well, see comment below on that. Either solution will provide the same result.
127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.16-31\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3}
@Rios I did try a simlar regex to that, but you have to remove the ^ for it to work. Thanks for your contribution!
127\..* | ... | ...