This is a very powerful add on. Very cool. Thanks to the developpers.
Can anybody tell me how to add a Regular Expression to a Custom Question?
My question looks like this right now:
PHP Code:
$answer = '<input type="text" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $vbulletin->userinfo[field24] . '" size="20" maxlength="17" />';
I want to add the following Regular Expression:
/[W][P]0[A-Z]{2}[0-9][A-Z0-9]{4}[A-Z][0-9]{6}/
I'm asking for a VIN and trying to make sure it's entered correctly.