A pyrenyl-appended triazole-based ribose as a fluorescent sensor for Hg2+ ion.