Genesys Casual

 View Only

Sign Up

Removing non-digits from a string

  • 1.  Removing non-digits from a string

    Posted 19 hours ago

    Hello community, if this is in the wrong spot i apologize in advance as this is my first post. Is there a simple way to remove all non-digits from a string in a bot flow? i.e. Bot: I just sent you a 6 digit verification code, let me know the code when you get it. User: Uh yeah, its 1234 56. I just want 123456 set to the var so i can compare. I was thinking regex but if the person replies "not yet" or "i didn't get it" i would like to compensate for that to, small thought in the back of my head was not to treat any no match as i didn't get it. Any advice in any direction (including where else to post) is greatly appreciated. 


    #CommunityQuestions(Contest,Community,etc.)

    ------------------------------
    Kevin Waller
    Senior Telecommunication Architect
    ------------------------------