public static boolean matches(String regularExpression, CharSequence input) {return new Matcher(new Pattern(regularExpression, 0), input).matches();}

public static bool matches(string regularExpression, java.lang.CharSequence input){return new java.util.regex.Matcher(new java.util.regex.Pattern(regularExpression,0), input).matches();}
