Java URL Normalize normalizeUrl(String url)

Here you can find the source of normalizeUrl(String url)

Description

normalize Url

License

Open Source License

Declaration

public static String normalizeUrl(String url) 

Method Source Code

//package com.java2s;

public class Main {
    public static String normalizeUrl(String url) {
        if (url == null)
            return null;

        return url.replaceAll("([^:]/)/{2,}", "$1/");
    }//from   w w  w.  j  a  v a 2s  . c  o  m
}

Related

  1. normalizeUrl(String url)
  2. normalizeUrl(String url)
  3. normalizeUrl(String url)
  4. NormalizeURL(String URL)
  5. normalizeUrl(String url)
  6. normalizeUrl(String url)
  7. normalizeUrl(String url)
  8. normalizeURL(URL codebase)
  9. normalizeUrl(URL url)