Fast and sensitive fluorescent detection of inorganic mercury species and methylmercury using a fluorescent probe based on the displacement reaction of arylboronic acid with the mercury species.