Forum Discussion

TruthVoyager's avatar
TruthVoyager
New Contributor
6 years ago
Solved

Using RegExp with aqString.Contains

I am trying to check to see if a string contains any letters using the following code. 

 

          if(aqString.Contains(info[i], /[A-Za-z]/) != -1)
          {
            an = "a";
          }

This if returns false even when it should return true. Any idea what is wrong? 

 

Thank you, 

4 Replies