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 (274 points) 11 21 34
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 (274 points) 11 21 34
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
988 questions
1,384 answers
2,511 users