Routing with regexes in MP - rikai-network/docs GitHub Wiki

Before: Basic routing in MP

  • Before beginning on this lesson, you should learn more about regex here
  • Learning up till Lesson 14 should be more than sufficient

  • You can add regex into a node to capture certain words that the user types.
  • In this example, even though the user did not click on the button, he was still routed to group=excited because the text he typed contained the word "ready". image
  • Tip: if the user typed "I am ready" or "super ready", the result would have been the same as regex captures the keyword even if it is part of longer sentence.