Determining if a math input contains an exponent

How can I tell if a math input uses an exponent? I understand I can get the LaTeX string back, but I don’t see in the documentation how to search it for ^.

I don’t believe there’s a specific function for that, but I think you probably can figure it out with some workarounds. There was a discussion a few days ago regarding scientific notation and powers, so maybe something here can help?