Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static String removeFuncInPaths(String original) { return original.replaceAll("/[a-z,A-Z]*\\:?[a-z,A-Z]+\\-?[a-z,A-Z]+\\(([^)]+)[\\)]{1}", "/$1"); } }