We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Strings
- Java Regex
- Discussions
Java Regex
Java Regex
Sort by
recency
|
647 Discussions
|
Please Login in order to post a comment
String pattern = "^(([01]?([0-9][0-9]?)|2[0-4][0-9]|25[0-5]?)\.){3}([01]?([0-9][0-9]?)|2[0-4][0-9]|25[0-5]?)$";
class MyRegex {
}
import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.Scanner;
class Solution{
} public class MyRegex { public static void main(String[] args) { MyRegex regex = new MyRegex(); Scanner scanner = new Scanner(System.in);
}
my solution: