Over the past 2 days I've dedicated my time to learning Regular Expressions (regex) from regexone.com and testing my expressions on the KoBo recommended regexr.com. I've significantly upped my skill.
Problem is I can write, test, and pass regex on regexr.com, but not all will pass within KoBo (enketo form preview) when I preview my forms even with properly formatted answers. A few tests have shown that:
1. For Numberical character "\d" equivalent to "[0-9]", inputs 0-9 do not pass on form preview, however the letter "d" will.
2. Any Whitespace "\s" does not work either with " ", maybe "s" will.
I have not tested for \w, and their opposites (\W, \S, \D, etc.)
This leads me to think that the Regex engine used in either the previews or maybe the rest of KoBo is different from regexr.com's. Otherwise the Regex engine has not been completely implemented.
I need to be able to pass input such as 123456/10/1, I've tried these:
- [0-9]{6}\/[0-9]{2}\/[0-9]
- \d{6}\/\d{2}\/\d
If anything it will work until [0-9]{6}\/[0-9]{2} = 123456/10, and no further.
I'll appreciate some help on this.