/** * Does the given argument match the pattern? * @param input the string to match against * @param options the regex options to use * @return true if the pattern matches * @throws BuildException on error */ @Override public boolean matches(String input, int options) throws BuildException { try { return getCompiledPattern(options).matcher(input).find(); } catch (Exception e) { throw new BuildException(e); } }
public Vector<String> getGroups(String input, int options) throws BuildException { Pattern p = getCompiledPattern(options); Matcher matcher = p.matcher(input); if (!matcher.find()) {