Home > Back-end >  PHP preg_match_all methods translation for Java
PHP preg_match_all methods translation for Java

Time:12-15

IP:
127.0.0.1

PHP:
Preg_match_all (' # \ d {1, 3} \ \ d {1, 3} \ \ d {1, 3} \ \ d {1, 3} # 's, $IP, $matches)

Java:
The Pattern the Pattern=Pattern.com running (" # \ \ d {1, 3} \ \ \ \ d {1, 3} \ \. \ \ d {1, 3} \ \. \ \ d {1, 3} # s ");
The Matcher Matcher.=the pattern Matcher (IP);

Using Java can't match, it is the wrong
  • Related