I need to remove a doubled letter from a string using regex operations in java. Eg: PRINCEE -> PRINCE APPLE -> APLE
String s = "..."; String replaced = s.replaceAll( "([A-Z])\\1", "$1" );