lundi 5 avril 2021

How to write an if statement that checks if input has any letters

I need a regex that gives me true when a letter exists in the input. I have tried if (formula.contains("[a-zA-Z]+") == true), but this does not seem to work.

Aucun commentaire:

Enregistrer un commentaire