Java tutorial
//package com.java2s; public class Main { public static String extractFilterCriteria(String selectedCriteria) { return (selectedCriteria.substring(0, selectedCriteria.lastIndexOf("("))).trim(); } }