import java.util.Hashtable;
+import com.stevesoft.pat.Regex;
+
/**
* This class is not implemented because Preferences never puts anything in
* groupURLLinks.
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 : '"
// 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
{