i am using following regular expression to validate a url that could be:
@"http[s]?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?";
A domin www.abc.com (Validates it) subdomain.abc.com (Validates it)
An Ip Address 192.168.0.1 (Validates it) 182.494.29.23 (Validates it)
I want to restrict non valid ip addresses 192.192 (Above Expression Validates it as well) 192.192.192 (Above Expression Validates it as well)
any one guide me what changes i need to add in above expression to restrict these non valid ip addresses?
Thanks in advance.