X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmir%2Futil%2FStringRoutines.java;h=6757bdfd8edf80ed1e93c29146db49428336efb1;hb=42680c1f9fe3250bcbd0f9ed5d9dee6188333b15;hp=b79ef109dba709dc38b64b581961528552ee6208;hpb=d3e3f0ffeefd8692277d9a82af477a64ae85e118;p=mir.git diff --git a/source/mir/util/StringRoutines.java b/source/mir/util/StringRoutines.java index b79ef109..6757bdfd 100755 --- a/source/mir/util/StringRoutines.java +++ b/source/mir/util/StringRoutines.java @@ -169,32 +169,6 @@ public class StringRoutines { } } - public static String performCaseInsensitiveRegularExpressionReplacement(String aSource, String aSearchExpression, String aReplacement) { - try { - RE regularExpression; - - regularExpression = new RE(aSearchExpression, RE.REG_ICASE); - - return regularExpression.substituteAll(aSource, aReplacement); - } - catch (Throwable t) { - throw new UtilFailure("StringRoutines.performRegularExpressionReplacement: " + t.toString(), t); - } - } - - public static boolean performRegularExpressionSearch(String aSource, String aSearchExpression) { - try { - RE regularExpression; - - regularExpression = new RE(aSearchExpression); - - return regularExpression.isMatch(aSource); - } - catch (Throwable t) { - throw new UtilFailure("StringRoutines.performRegularExpressionSearch: " + t.toString(), t); - } - } - /** * Separates a string based on a separator: * seperateString("a:b:c", ":"); will lead to