Praveen Dass
Praveen Dass

Reputation: 616

Unable to mark a entity type as Regex in dialogflow

I want to create a custom entity that will recognise all email addresses.

So I created a entity, gave in a regex expression, marked the 'Regex'check box and when I save it, the regex option gets automatically unchecked. Below is the regex: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ unable to check entity as regex

I think its not an issue with the regex, because I am not able to mark the entity with even the simplest regex /^[a-z]$/

Upvotes: 0

Views: 433

Answers (1)

Ted
Ted

Reputation: 75

First of all, don't use the forward slashes at the beginning and end. Next, check "Define synonyms" box, then check the "Regexp entity" box. Then Save.

Upvotes: 2

Related Questions