document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. ///expressão regular para controlar o IP valido
  2. String _255 = "(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)";
  3. Pattern p = Pattern.compile("^(?:" + _255 + "\\\\.){3}" + _255 + "$");
  4. RegexFormatter ipFormatter = new RegexFormatter(p);
  5. txtip.setFormatterFactory(new DefaultFormatterFactory(ipFormatter));
');