e107help.org Q&A
0 like 0 dislike

I'm trying to add a custom field with a regexp. I have set it up to use


which is the format of a windows product key. But no matter what I try I get the error

19 - user_lic - Wrong code...: Empty value

wrong code, is my error message, but what am I doing wrong?


e107 version latest from github
in Other by (276 points) 11 23 36
closed by

1 Answer

0 like 0 dislike
Best answer
Ok, found out. For others that need this, in fact the hint to use delimiters is given. But what actually is meant is that you have to set the regex between quotes. So '^[A-Z1-9]{5}(-[A-Z1-9]{5}){4}$' works in stead of above.
by (276 points) 11 23 36
996 questions
1,389 answers
2,512 users