Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: field_filters not working

by bar10der (Beadle)
on May 12, 2004 at 15:39 UTC ( #352794=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: field_filters not working
in thread field_filters not working

Hi, I did write a constraint but looks like I am struck a bit. Here is the code -

constraints => { smcsystems => qr/^\d+$/,}

But above is accepting any data - numeric and non-numeric. However if i change code to ->

constraints => { smcsystems => qr/^\d{3}$/,}

It does validate data but then I have to enter 3 digits(that is the max length allowed in my form field). Now I am not sure how I can write reg-ex so that it accepts any number of digits but no alpha chars.

  • Comment on Re: Re: Re: Re: field_filters not working

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-09-17 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?