package jalview.jsdev; import com.stevesoft.pat.Regex; import jalview.jsdev.api.RegExpInterface; /** * an intermediary working class allowing options other than com.stevesoft.pat.Regex * * @author Bob Hanson * */ public class RegExp { RegExpInterface rg; public static RegExpInterface newRegex(String... params) { return new Regex(params.length < 1 ? null : params[0], params.length < 2 ? "" : params[1]); } public static RegExpInterface perlCode(String s) { return Regex.perlCode(s); } }