packageorg.jivesoftware.admin;/** * Utility functions that are exposed through a taglib. * * @author Guus der Kinderen */publicclassJSTLFunctions{/** * JSTL delegate for {@link String#replaceAll(String, String)}. The first argument is the value on which the * replacement has to occur. The other arguments are passed to {@link String#replaceAll(String, String)} directly. * * @see String#replaceAll(String, String) */publicstaticStringreplaceAll(Stringstring,Stringregex,Stringreplacement){returnstring.replaceAll(regex,replacement);}/** * JSTL delegate for {@link String#split(String)}. The first argument is the value on which the replacement has to * occur. The other argument is used as the argument for the invocation of {@link String#split(String)}. * * @see String#split(String) */publicstaticString[]split(Stringstring,Stringregex){returnstring.split(regex);}}