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;
//License from project: Open Source License 

public class Main {
    public static final String REGEX_URL1 = "[\\\\]+";
    public static final String REGEX_URL2 = "\\" + "/";

    public static String normalizeUrl(String url) {
        return url.toLowerCase().replaceAll(REGEX_URL1, REGEX_URL2);
    }//  w w  w .j av a 2s .  c o m
}

Related

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