JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / util / GroupUrlLink.java
index 512e046..e4c4ad0 100644 (file)
@@ -24,6 +24,8 @@ import jalview.datamodel.SequenceI;
 
 import java.util.Hashtable;
 
+import com.stevesoft.pat.Regex;
+
 /**
  * This class is not implemented because Preferences never puts anything in
  * groupURLLinks.
@@ -219,8 +221,7 @@ public class GroupUrlLink
         regexReplace[pass] = link.substring(ptok[pass] + mlength, p);
         try
         {
-          com.stevesoft.pat.Regex rg = com.stevesoft.pat.Regex
-                  .perlCode("/" + regexReplace[pass] + "/");
+          Regex rg = Platform.newRegexPerl("/" + regexReplace[pass] + "/");
           if (rg == null)
           {
             invalidMessage = "Invalid Regular Expression : '"
@@ -484,14 +485,13 @@ public class GroupUrlLink
     // iterate through input, collating segments to be inserted into url
     StringBuffer matched[] = new StringBuffer[idseq.length];
     // and precompile regexes
-    com.stevesoft.pat.Regex[] rgxs = new com.stevesoft.pat.Regex[matched.length];
+    Regex[] rgxs = new Regex[matched.length];
     for (pass = 0; pass < matched.length; pass++)
     {
       matched[pass] = new StringBuffer();
       if (regexReplace[pass] != null)
       {
-        rgxs[pass] = com.stevesoft.pat.Regex
-                .perlCode("/" + regexReplace[pass] + "/");
+        rgxs[pass] = Platform.newRegexPerl("/" + regexReplace[pass] + "/");
       }
       else
       {