Regex Problem in KoBoCollect

Dear @janna,y
thanks for your offer.
I would primarily like to understand, how KoBoCollect generally treats any regex (and why different to Enketo and the normal regex behavior). This will allow us to adapt regex expressions to the Collect style.
I also took a look at three more articles:

  1. https://blog.cartong.org/2018/03/15/all-about-regex-in-xls-form-when-how-and-examples-in-the-humanitarian-and-development-fields/
  2. https://docs.opendatakit.org/form-regex/?highlight=length#using-regular-expressions
  3. http://support.kobotoolbox.org/en/articles/592440-restricting-text-responses-with-regular-expressions

Unfortunately, none of the given examples corresponds to ours. But the reference tool from Tino Kreutzer (@Tinok) will MATCH (except set “STICKY” flag), Like Enketo does. Here is the screenshot


(with global flag it will match twice).

I think, the difference between Collect and Enketo is NOT caused by the different Java library (see @Kal_Lam above). But someone of you might check this (outside Collect).

Still eager to understand the Collect regex treatment, and if this might be a bug.
Kind regards
Wolfgang