Validate with Regular Expressions! (advanced)
Do you want to use Regular Expressions to validate your input? Yes, you can! But be aware that RegEx is a very delicate language and takes some time and effort to understand. Luckily there is quite some helpful website to get you going.
So adding it is simple: Just add a Short text Step to your bot and add the RegEx at the 2. Answers & options section. At the bottom of the 3. Bot Responses you can add the Invalid response, which is shown if the input doesn’t validate based on the input of the user .
- Some very helpful examples (that work with QB):https://blog.patricktriest.com/you-should-learn-regex/