/** * Constructor. * * @param regex * the regular expression to match against. */ public NameLike(String regex) { this.regex = new Regex(regex); }
/** * Constructor. * * @param regex * the regular expression to match against. * @param caseSensitive * whether the match should be case sensitive (default: {@code true}). */ public Matches(String regex, boolean caseSensitive) { this.regex = new Regex(regex, caseSensitive); }
/** * Constructor. * * @param regex * the regular expression to match against. * @param caseSensitive * whether the match should be case sensitive (default: {@code true}). */ public Matches(String regex, boolean caseSensitive) { this.regex = new Regex(regex, caseSensitive); }
/** * Constructor. * * @param regex * the regular expression to match against. * @param caseSensitive * whether the match should be case sensitive (default: {@code true}). */ public Matches(String regex, boolean caseSensitive) { this.regex = new Regex(regex, caseSensitive); }
/** * Constructor. * * @param regex * the regular expression to match against. */ public NameLike(String regex) { this.regex = new Regex(regex); }
/** * Constructor. * * @param regex * the regular expression to match against. */ public NameLike(String regex) { this.regex = new Regex(regex); }
/** * Constructor. * * @param pattern * the pattern to match against file names. * @param files * an output list of files matching the given name pattern. */ public FileFinderVisitor(String pattern, List<File> files) { regex = new Regex(pattern); this.files = files; }
BufferedReader output = new BufferedReader(new InputStreamReader(process.getInputStream())); Regex regex = new Regex("^\\s*(.*)\\s+(?:on)\\s+(.*)\\s+(?:type)\\s+(.*)\\s+(?:\\(.*\\))\\s*$");
Regex regex = new Regex(VARIABLE_PATTERN, caseSensitive); List<String[]> variables = null;
Regex regex = new Regex(COLOR_REGEX, false); if(regex.matches(value.trim())) { int r = -1, g = -1, b = -1;
Regex regex = new Regex(VARIABLE_PATTERN, caseSensitive); List<String[]> variables = null;
Regex regex = new Regex(VARIABLE_PATTERN, caseSensitive); List<String[]> variables = null;