Android String Remove removeSurplusSeparator(String str)

Here you can find the source of removeSurplusSeparator(String str)

Description

remove Surplus Separator

Declaration

public static String removeSurplusSeparator(String str) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {
    public static String removeSurplusSeparator(String str) {
        String sepStr = File.separator;
        return str.replaceAll(sepStr + sepStr, sepStr);
    }//from  w ww . j a va2s .  co m
}

Related

  1. removeCommaChar(String str)
  2. removeMinusChar(String str)
  3. removePhotoFromVCard(String vcard)
  4. removeQuotes(String ssid)
  5. removeSpaces(String string)
  6. removeTableName(String tableName)
  7. removeWhitespaces(String pString)