A novel colorimetric and fluorescent chemosensor for anions involving PET and ICT pathways.