I want to remove a part of string from one character, that is:
Source string:
manchester united (with nice players)
Target string:
originalString.replaceFirst("[(].*?[)]", "");
https://ideone.com/jsZhSC replaceFirst() can be replaced by replaceAll()
replaceFirst()
replaceAll()