Detecting Numbers and Uppercase in Text

Hello, I would like to make sure that if a number is present in a text, an icon appears. I would like to do the same for an uppercase letter—if there is an uppercase letter in a text, then an icon appears.

I need your help!