Home » HTML » HTML_QuickForm » Bug #4424
registerrule doesn't work with regex
Details
| Submitted | 2005-05-25 07:24 UTC |
|---|---|
| From | pear dot php dot net at snelweg dot net |
| Status | No Feedback |
| Package | HTML_QuickForm |
| PHP Version | 4.3.11 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-05-25 07:24 UTC] pear dot php dot net at snelweg dot net
Description:
------------
The rule doesn't seem to get applied to the %data% portion.
Reproduce code:
---------------
$form->addElement('text', 'emailhhs','Emailadres at the HHS');
$form->registerRule('emailhhsReg','regex','/@(%data%)$/');
$form->addRule('emailhhs','This adress is <b>not</b> a valid student.hhs.nl adress', 'emailhhsReg','student.hhs.nl');
Expected result:
----------------
Behaviour as described in the documentation
Actual result:
--------------
always a false return