What is a regex?

 

Regex is short for “regular expression”. A regex is a sequence of characters that define a pattern. The most common example is a regex for phone numbers. Phone numbers are always shaped in a certain pattern. Depending on where you live they might start with a country code, an area code and a certain amount of numbers following on that. Regex defines this pattern for your chatbot so that it knows to recognize it and store it as a parameter or entity.