Here you can find the source of normalizeUrl(String url)
public static String normalizeUrl(String url)
//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 }