Changeset 1714


Ignore:
Timestamp:
2010-09-22 18:13:03 (3 years ago)
Author:
mpo
Message:

just needed a replace thingy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/universe/kauri-template/src/main/java/org/kauriproject/template/el/StringFunctions.java

    r1015 r1714  
    4646    public static int length(String string) { 
    4747        return string.length(); 
    48     } 
     48    }    
    4949 
    5050    public static String substring(String string, int beginIndex, Integer endIndex) { 
     
    7474        return string.contains(substring); 
    7575    } 
    76  
     76     
     77    public static String replace(String string, String regex, String replacement) { 
     78        return string.replaceAll(regex, replacement); 
     79    } 
    7780} 
Note: See TracChangeset for help on using the changeset viewer.