RE: Form Validation

2005-06-22 Thread Gerald Richter
> > Gerald, is it possible this is a bug: > > I notice that your validation for the Number type uses this regex: > > /^\s*[0-9+-.][0-9.eE]*\s*$/ > > However, that fails on a value such as 9.516e-5, which is a > valid float. > > I believe you need to add a negative sign to the second > charac

RE: changing $req_rec

2005-06-22 Thread Gerald Richter
Hi, > > If it's any help I tried writing a subclass of Embperl.pm and > overriding the handler() method and putting in a call to > Apache::Request->instance, but it just segfaulted... > > I then tried writing a handler that simply created the > Apache::Request->instance and then called > Emb

Form Validation

2005-06-22 Thread allen haim
Gerald, is it possible this is a bug: I notice that your validation for the Number type uses this regex: /^\s*[0-9+-.][0-9.eE]*\s*$/ However, that fails on a value such as 9.516e-5, which is a valid float. I believe you need to add a negative sign to the second character class: /^\s*[0-9+-.][0