// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class RegexReplace {
    public static void main(String[] args) {
        String s = " 0:00 og 00:00";
        System.out.println(s);
        String s2 = s.replaceAll(" (\\d{1,2}:\\d{2})", "noget andet $1");
        System.out.println(s2);
    }
}
