PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #4424

registerrule doesn't work with regex

Details

Submitted2005-05-25 07:24 UTC
Frompear dot php dot net at snelweg dot net
StatusNo Feedback
PackageHTML_QuickForm
PHP Version4.3.11
OSLinux
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