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

^[A-Z1-9]{5}(-[A-Z1-9]{5}){4}$

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
closed
in Other by (263 points) 8 16 29
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 (263 points) 8 16 29
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
934 questions
1,336 answers
2,344 comments
2,309 users