I'm trying to exclude some internal IP addresses and some internal IP address formats from viewing certain logos and links in the site.I have multiple range of IP addresses(sample given below). Is it possible to write a regex that could match all the IP addresses in the list below using javascript?
10.X.X.X
12.122.X.X
12.211.X.X
64.X.X.X
64.23.X.X
74.23.211.92
and 10 more
.*
matches all these... Your question is vague - do you want any kind of IPv4 address to match? If not, what are the rules for matching? Is that a realX
or did you mean this as a placeholder for "anything"? What are the "10 more" IP addresses? – Tim Pietzcker Apr 19 '12 at 21:04