Colorimetric anion sensors based on positional effect of nitro group for recognition of biologically relevant anions in organic and aqueous medium, insight real-life application and DFT studies.