Alejandro Ll.
Alejandro Ll.

Reputation: 185

RegEx match special character in Dialogflow

I have problem matching with an intent this kind of words "¿Cómo", "¿Que" etc.

I tried creating an entity with the following regex: ¿\w+. but it doesn't work. Any idea? Here are some prints of the Intent, Entity and Validation warnings:

Intent detail: Intent detail Entity detail: Entity detail Validation warnings: Validation Warnings

Upvotes: 2

Views: 163

Answers (1)

Wiktor Stribiżew
Wiktor Stribiżew

Reputation: 627292

You may use the \x notation instead of a literal Unicode char:

\xbf\w+

where \xbf stands for the ¿ char.

Upvotes: 1

Related Questions