// 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 Strip {
    public static void test(String s) {
        System.out.println(s);
        System.out.println(s.replaceAll("<[^>]*>", ""));
        System.out.println(s.replaceAll("(^<[^>]*>)|(<[^>]*>$)", ""));
    }
    public static void main(String[] args) {
        test("<a><b>xxx</b><c>yyy</c></a>");
    }
}
