@Test public void matchMultiline() { String regex = "^.*$"; assertTrue(ValidationUtilities.validateRegExp(regex, "abc\n def")); }
protected static boolean validateRegExp(String pattern, String value) throws PatternSyntaxException { Pattern re = patternCache.get(pattern); if (re == null) { re = compile(pattern, MULTILINE | DOTALL); patternCache.put(pattern, re); } return (re.matcher(value).matches()); }
ValidationUtilities { protected static boolean validateRegExp(String pattern, String value) throws PatternSyntaxException { Pattern re = patternCache.get(pattern); if (re == null) { re = compile(pattern, MULTILINE | DOTALL); patternCache.put(pattern, re); } return (re.matcher(value).matches()); } }
ValidationUtilities { protected static boolean validateRegExp(String pattern, String value) throws PatternSyntaxException { Pattern re = patternCache.get(pattern); if (re == null) { re = compile(pattern, MULTILINE | DOTALL); patternCache.put(pattern, re); } return (re.matcher(value).matches()); }  }
ValidationUtilities { protected static boolean validateRegExp(String pattern, String value) throws PatternSyntaxException { Pattern re = patternCache.get(pattern); if (re == null) { re = compile(pattern, MULTILINE | DOTALL); patternCache.put(pattern, re); } return (re.matcher(value).matches()); }  static boolean isValid(Annotation annotation); static boolean isValid(AnnotationDefinition annoDef, String value); }
ValidationUtilities { protected static boolean validateRegExp(String pattern, String value) throws PatternSyntaxException { Pattern re = patternCache.get(pattern); if (re == null) { re = compile(pattern, MULTILINE | DOTALL); patternCache.put(pattern, re); } return (re.matcher(value).matches()); }  static boolean isValid(Annotation annotation); static boolean isValid(AnnotationDefinition annoDef, String value);  }