Java tutorial
//package com.java2s; public class Main { /** * <p>First line unfolds all the labels * Second line unfolds all the lines (if needed.)</p> * * <p>This unfolding technique is according to the MIME-DIR specifications * as described in section 5.8.1 "Line delimiting and folding."</p> * * @param vcardString * @return {@link String} */ public static String unfoldVCard(String vcardString) { String unfold1 = vcardString.replaceAll("=\n\\p{Blank}+", ""); String unfold2 = unfold1.replaceAll("\n\\p{Blank}+", ""); return unfold2; } }