return new Object[] {Pattern.compile(pieces[0], options), pieces[1] , new Integer(flags)};
}
protected static List[] getPatternsFromString(String pattern) throws MailetException {
pattern = pattern.trim();
if (pattern.length() < 2 && !pattern.startsWith("/") && !pattern.endsWith("/")) throw new MailetException("Invalid parameter value: " + PARAMETER_NAME_SUBJECT_PATTERN);
pattern = pattern.substring(1, pattern.length() - 1);
String[] patternArray = StringUtils.split(pattern, "/,/");
List patterns = new ArrayList();
List substitutions = new ArrayList();