A retrievable and highly selective fluorescent probe for monitoring dihydrogen phosphate ions based on a naphthalimide framework.