Java tutorial
public class Main { public static void main(String[] argv) { System.out.println("\r\n|\r|\n|\n\r".replaceAll("(\r\n|\r|\n|\n\r)", "<br>")); } } //<br>|<br>|<br>|<br><br>