PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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