Regex for allowing both single and double quote

Hi

Can anyone help me with the regular expression in the xlsform where I would like to allow both single and double quotes. I am already using the one in attachment, that allows double quote. But I need both of them.

Thanks in advance.

image

Hi @prosonno_hasda and welcome back!

From your screenshot, it seems you only allowed " (double quote marks) in your regex. Can you can add ' (single quote marks) too and see if that works?

Tried that too. But didn’t work.

Hi @prosonno_hasda
Can you try with this one regex(., concat('^[a-zA-Z0-9\-,\.?/V():;&\s"', "'", ']+$'))
From what I see, the error seems to come from an escaped character detected at form deployment.

@prosonno_hasda
A piece of advice here!
Please make sure to test this regex expression in both clients for data‑collection WebForms/Enketo and KoboCollect