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
|
653 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.; import java.util.regex.*;
public class Solution {
}
class Solution{
}
`class MyRegex { String pattern = "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\." + "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\." + "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\." + "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"; }
import java.io.; import java.util.;
class Solution {
}
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]?)$";