See {@link java.util.regex.Pattern} for more information about Javaregular expressions.
257258259260261262263264265266267
public List find(String tag, String pattern) { List result = new ArrayList(); Iterator i = getVariableFields(tag).iterator(); while (i.hasNext()) { VariableField field = (VariableField) i.next(); if (field.find(pattern)) result.add(field); } return result; }
268269270271272273274275276277278
public List find(String[] tag, String pattern) { List result = new ArrayList(); Iterator i = getVariableFields(tag).iterator(); while (i.hasNext()) { VariableField field = (VariableField) i.next(); if (field.find(pattern)) result.add(field); } return result; }