public static void splitString(String stringToSplit, String patternToSplit) {        
        Pattern pattern = Pattern.compile(patternToSplit);
        String[] parts = pattern.split(stringToSplit);
        for(String p:parts){
            System.out.println(p);
        }
    }