Check if String Contains letters or any special charaters


Is there a way to check if a string contains any letters or special characters and if it does, save that results value to a boolean and use in a if statement?


Gerhard, you can do it using a custom action

    input = ['text', 'subtext'],
    output = 'result'

def customScript() {
    result = text.contains(subtext)

Here is a sample recording: (817 Bytes)

Thanks, will check it out

1 Like


I used the regex function with [a-zA-z] and it also worked 100%

1 Like