A two-channel chemosensor for the optical detection of carboxylic acids, including cholic acid.