regex pour ips
# Match between 1 to 3 numbers separated by . in four groups
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
RicarHincapie
# Match between 1 to 3 numbers separated by . in four groups
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
String pattern = "([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])";
^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$