Search code examples
regexdialogflow-es

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


Solution

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

    \xbf\w+
    

    where \xbf stands for the ¿ char.