Lines Matching defs:regex
36 import java.util.regex.Pattern;
292 * @param regex
293 * the <a href="{@docRoot}/java/util/regex/Pattern.html#sum">
297 * @throws NullPointerException if {@code regex} is
299 * @throws java.util.regex.PatternSyntaxException if the regular expression's
302 public static SNIMatcher createSNIMatcher(String regex) {
303 if (regex == null) {
308 return new SNIHostNameMatcher(regex);
332 * @param regex
333 * the <a href="{@docRoot}/java/util/regex/Pattern.html#sum">
336 * @throws NullPointerException if {@code regex} is
341 SNIHostNameMatcher(String regex) {
343 pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);