RegEx Patterns in Cognigy Nodes – Cognigy.AI Help Center

RegEx Patterns in Cognigy Nodes

Cognigy Support
September 8, 2023

Challenge

I am not able to make my RegEx pattern to work within the Cognigy Nodes

Solution

Cognigy v4 requires any RegEx pattern to start with "/" and end in "/[flags]"
The best way to make sure your pattern is correct and matches the values you are looking for is to create and test your pattern here: https://regex101.com/

Example pattern to recognize a number character as one value:

/[0-9]/g

QnA

Table of contents

Challenge