JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git] / src / jalview / jsdev / RegExp.java
1 package jalview.jsdev;
2
3 import com.stevesoft.pat.Regex;
4
5 import jalview.jsdev.api.RegExpInterface;
6
7 /**
8  * an intermediary working class allowing options other than com.stevesoft.pat.Regex
9  * 
10  * @author Bob Hanson
11  * 
12  */
13 public class RegExp {
14
15         RegExpInterface rg;
16         
17         public static RegExpInterface newRegex(String... params) {
18                 return new Regex(params.length < 1 ? null : params[0],
19                                 params.length < 2 ? "" : params[1]);
20         }
21
22         public static RegExpInterface perlCode(String s) {
23                 return Regex.perlCode(s);
24         }
25
26 }