A fluorescent probe (QA) based on quinine bearing two quaternary ammonium groups and a long hydrophobic chain was synthesized, and it showed highly selective recognition of carbenicillin (a typical beta-lactam antibiotic) in 100% aqueous solution via concerted interactions.