Java Unix Encode unixLineEndings(String text)

Here you can find the source of unixLineEndings(String text)

Description

unix Line Endings

License

Apache License

Declaration

public static String unixLineEndings(String text) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String unixLineEndings(String text) {
        return text.replaceAll("\r\n?", "\n");
    }//from  www .jav a 2  s  .com
}

Related

  1. unixCommands(final String prefix)
  2. unixEncode(String string)
  3. UnixNameFilter(String Name)