Android String Remove rmvBlankLines(String input)

Here you can find the source of rmvBlankLines(String input)

Description

rmv Blank Lines

Declaration

public static String rmvBlankLines(String input) 

Method Source Code

//package com.java2s;

public class Main {
    public static String rmvBlankLines(String input) {
        return input.replaceAll("((\r\n)|\n)[\\s\t ]*(\\1)+", "$1");
    }/* w  w  w  .ja va 2s. c  o  m*/
}

Related

  1. removeSuffix(String str, String suffix)
  2. removeWhitespace(String str)
  3. rmvSpace(String baseStr)
  4. rmvSpecial(String baseStr)
  5. removeBlanks(String content)
  6. remove(String str, char remove)
  7. removeCharacters(String x, char... cs)
  8. removeCommaChar(String str)
  9. removeMinusChar(String str)